This web service downloads a vocabulary in CSV or RDF format.
Method |
Endpoint |
GET |
/api/admin/khub/vocabularies/{vocabularyId}/content?format=$VOCABULARY_MIMETYPE |
Path parameter |
Type |
Description |
{vocabularyId} |
String |
The unique identifier of the vocabulary to be updated. |
Query parameter |
Type |
Required? |
Description |
VOCABULARY_MIMETYPE |
String |
Yes |
The desired format of the downloaded file. Possible values are text/csv and application/rdf+xml . |
Request example
api/admin/khub/vocabularies/vocabulary-id/content?format=text/csv
Return code |
Description |
200 OK |
The request is valid and the downloaded file is available. |
401 UNAUTHORIZED |
The authorization header was not provided or is invalid. |
403 FORBIDDEN |
The user not have the ADMIN or KHUB_ADMIN role. |
404 NOT FOUND |
The vocabulary does not exist. |