Feature #1479
API: get by view name and system class
Description
With the new system class, it is possible to get more entities with the "code" path. Because we can not change the API path, /api/0.2./code/ will provide still the (now called) view names ['actor', 'event', 'place', 'reference', 'source', 'artifact', 'type' , 'file' , 'source_translation' ] (italic ones aren't supported right now, but will be)
Additionally, a new path will be created: /api/0.2/system_class/, which will have the following options: ['acquisition', 'activity', 'actor_appellation','administrative_unit', 'appellation', 'artifact', 'bibliography', 'edition', 'external_reference', 'feature','file', 'find', 'group', 'human_remains', 'move', 'object_location', 'person', 'place', 'reference_system', 'source', 'stratigraphic_unit','source_translation', 'type']
system_class will also be available for /query/?system_classes=.
Related issues
History
Updated by Alexander Watzinger over 1 year ago
I agree, we shouldn't change the code pass, this should work independently from our system and is a pure CIDOC CRM approach.
As for the system_class approach you could look the list up at model/system.py.
Updated by Bernhard Koschiček-Krombholz over 1 year ago
- Related to Feature #1484: API: Add new functions added