-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#119: Move endpoints dict to a separate file
- This change is to prevent a circular import when get_entity_object_from_name is modified - Also removes a TODO comment that has previously addressed - it was regarding camelCasing of modId etc.
- Loading branch information
1 parent
170baa4
commit 5b6f055
Showing
6 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
datagateway_api/src/resources/entities/entity_endpoint_dict.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# endpoint_name: entity_name | ||
endpoints = { | ||
"Applications": "Application", | ||
"DataCollectionDatafiles": "DataCollectionDatafile", | ||
"DataCollectionDatasets": "DataCollectionDataset", | ||
"DataCollectionParameters": "DataCollectionParameter", | ||
"DataCollections": "DataCollection", | ||
"DatafileFormats": "DatafileFormat", | ||
"DatafileParameters": "DatafileParameter", | ||
"Datafiles": "Datafile", | ||
"DatasetParameters": "DatasetParameter", | ||
"DatasetTypes": "DatasetType", | ||
"Datasets": "Dataset", | ||
"Facilities": "Facility", | ||
"FacilityCycles": "FacilityCycle", | ||
"Groupings": "Grouping", | ||
"InstrumentScientists": "InstrumentScientist", | ||
"Instruments": "Instrument", | ||
"InvestigationGroups": "InvestigationGroup", | ||
"InvestigationInstruments": "InvestigationInstrument", | ||
"InvestigationParameters": "InvestigationParameter", | ||
"InvestigationTypes": "InvestigationType", | ||
"InvestigationUsers": "InvestigationUser", | ||
"Investigations": "Investigation", | ||
"Jobs": "Job", | ||
"Keywords": "Keyword", | ||
"ParameterTypes": "ParameterType", | ||
"PermissibleStringValues": "PermissibleStringValue", | ||
"PublicSteps": "PublicStep", | ||
"Publications": "Publication", | ||
"RelatedDatafiles": "RelatedDatafile", | ||
"Rules": "Rule", | ||
"SampleParameters": "SampleParameter", | ||
"SampleTypes": "SampleType", | ||
"Samples": "Sample", | ||
"Shifts": "Shift", | ||
"Studies": "Study", | ||
"StudyInvestigations": "StudyInvestigation", | ||
"UserGroups": "UserGroup", | ||
"Users": "User", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters