Project

General

Profile

Feature #1479

API: get by view name and system class

Added by Bernhard Koschiček-Krombholz 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Category:
API
Target version:
Start date:
2021-03-05
Estimated time:

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

Related to Feature #1484: API: Add new functionsClosed2021-03-11Actions

History

#1

Updated by Bernhard Koschiček-Krombholz 5 months ago

  • Description updated (diff)
#2

Updated by Alexander Watzinger 5 months 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.

#3

Updated by Bernhard Koschiček-Krombholz 5 months ago

  • Status changed from New to Closed
#4

Updated by Bernhard Koschiček-Krombholz 5 months ago

Also available in: Atom PDF