This site explains the different usage scenarios. The API basically can be accessed through two methods: Either from the user interface of an OpenAtlas application or, if the settings will allow it, from another application.
Please refer to the SwaggerHub documentation: https://app.swaggerhub.com/apis-docs/ctot-nondef/OpenAtlas/0.1
The API paths also take in parameters.
<'asc', 'desc'>
?sort=<'asc','desc'>
If multiple sort parameter are used, the first valid sort input will be used.
It does not matter if the words are uppercase or lowercase (i.e. DeSc or aSC), but the query only takes asc or desc as valid input. If no valid input is provided, the result is orders ASC.
<'id', 'class_code', 'name', 'description', 'created', 'modified', 'system_type', 'begin_from', 'begin_to', 'end_from', 'end_to'>
The column parameter declares which columns in the table are sorted with the sort parameter.
?column=<'id', 'class_code', 'name', 'description', 'created', 'modified', 'system_type', 'begin_from', 'begin_to', 'end_from', 'end_to'>
If multiple column parameter are used, a list is created, by the order in which the parameters are given (i.e. ?column=name&column=description&column=id will order by name, description and id).
It does not matter if the words are uppercase or lowercase (i.e. Name, ID, DeScrIPtioN or Class_Code). If no valid input is provided, the results are ordered by name.
<number>
The limit parameter declares how many results will returned.
?limit=<number>
If multiple limit parameter are used, the first valid limit input will be used. Limit only take positive numbers.
<=, !=, <, <=, >, >=, LIKE, IN, AND, OR, AND NOT, OR NOT>
The filter parameter is used to specify which entries should return.
?filter=<XXX>
Please note, that the filter values will translate directly in SQL. For example:
?filter=and|name|like|Ach&filter=or|id|gt|5432
AND e.name LIKE %%Ach%% OR e.id > 5432
?filter=or|id|gt|150&filter=anot|id|ne|200 ?filter=and|name|like|Ach
first=<id> OR last=<id>
The first parameter takes ids and will show every entity after and including the named id.
The last parameter takes ids and will show every entity after the named id.
?first=<id>
?last=<id>
First and last take only one id, which is has to be a number. The table will be sorted AND filtered before the pagination comes in place.
?last=220 ?first=219
<'when', 'types', 'relations', 'names', 'links', 'geometry', 'depictions', 'geonames', 'none'>
The show parameter will take in the key values of a json. If no value is given, every key will be filled. If a value is given, it only will show the types which are committed. If the parameter contains none, no additional keys/values will be shown
?show=<'when', 'types', 'relations', 'names', 'links', 'geometry', 'depictions', 'geonames', 'none'>
For each value a new parameter has to be set. The value will be matched against a list of keywords, so wrong input will be ignored.
?show=when ?show=types ?show=types&show=when ?show=none
<>
Returns a json with a number of the total count of the included entities.
?count
Only count will trigger the function. Count can have any numbers assigned to it, which makes no difference.
?count
<>
Will trigger the download of the result of the request path.
?download
Only download will trigger the function. Download can have anything assigned to it, but this will be discarded.
?download