Project

General

Profile

Actions

Deprecated

HTTP Request with json body

The API can requested with 3 different parameters with a json payload to /api/0.1/. It is very important, that every value has to be a list[]! The sequence of the occurrence is not important.

{
    "id": [15],
    "item": ["place", "source"],
    "class_code": ["E18"],
    "latest": [5]
}
curl --location --request GET 'http://127.0.0.1:5000/api/0.1/' \
--header 'Content-Type: application/json' \
--header 'Cookie: session=.eJxtk8mO2zAMht9F52CytDMofOsT9NJbURCMRducaoNE1UEG8-6lnARxg1xk6f9IWlz0YWDIVCbTDegKbYzDMFYcyXSGgtmYQiIcxmK6D4OJIdWj417pz1xJuaVjHcFH2zyW84DVCTzGuemCR0eQ46wRD68bMyA7suDiyAGGmEcS8ByqkBrsH7hkbvIXlVWFmlxEC-hcnNWGTkKhcAym-2VGHvSv74nG5dPWZJuUQtvLSXQ9czK__w_m8QSFz3rv_W5jRooBPRWo2Wkmk0gq3XY7z_PLDb3onbdmbVoot53ax0QBxWFRrhmAo7_U4rxdzhGWP7O9lM5rqved9iV6oGfiNfpNy9RzYgpSYCCyR-z_tAq0zBYuGUNJMQtMscjK8Q7a8hSskllggt7VIpTBcllaiQLnGL0a7A8PJpq8Wtj7sKxhK3RGy1Ubal53V9pCwXVW1iEXXV2a9q1pHNhXD-9FMhEUwtxPDa5YwlLmmHV4KIyidH_Q9ud4KbrX4YSZbQPmsGsX0KxtfOb3poz0JUAfw8DZayFrbgP8VR8IC8FEaClfirQI15r90AH4vgzA5-c_-Lgv7A.XuaMAA.Jjnf9MaToIdph8sfXIfXsHQLWDY' \
--data-raw '{
    "id": [115],
    "item": ["place", "source"],
    "class_code": ["E18"],
    "latest": [5]
}'

id only takes digits
item only takes place, source, reference, actor, event, object
class_code only takes the cidoc class code
latest only takes digits and only the first position counts

If duplicates occur, only the last of in the list will be shown, e.g.:

{
    "id": [15],
    "id": [20]
}

Only the entity with the id 20 will be outputted as json

Updated by Bernhard Koschicek 2 months ago · 1 revisions

Also available in: PDF HTML TXT