Project

General

Profile

Actions

Feature #1479

closed

API: get by view name and system class

Added by Bernhard Koschiček-Krombholz almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
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 1 (0 open1 closed)

Related to OpenAtlas - Feature #1484: API: Add new functionsClosedBernhard Koschiček-Krombholz2021-03-11Actions
Actions #1

Updated by Bernhard Koschiček-Krombholz almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Alexander Watzinger almost 4 years 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.

Actions #3

Updated by Bernhard Koschiček-Krombholz almost 4 years ago

  • Status changed from New to Closed
Actions #4

Updated by Bernhard Koschiček-Krombholz almost 4 years ago

Actions

Also available in: Atom PDF