A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
If you want to obtain all metadata records ‘/api/v1/metadata’ endpoint has to be called. This may look like this:
$ curl 'http://localhost:8040/api/v1/metadata' -i -X GET
HTTP-wise the call looks as follows:
GET /api/v1/metadata HTTP/1.1
Host: localhost:8040
As a result, you receive a list of metadata records.
HTTP/1.1 200 OK
Content-Range: 0-9/1
Content-Type: application/json
Content-Length: 696
[ {
"id" : "6785ad43-9a17-40b5-9653-220a8232ef2f",
"relatedResource" : {
"identifier" : "https://repo/anyResourceId",
"identifierType" : "URL"
},
"createdAt" : "2022-05-20T09:54:03Z",
"lastUpdate" : "2022-05-20T09:54:03.677Z",
"schema" : {
"identifier" : "http://localhost:8040/api/v1/schemas/my_first_json?version=2",
"identifierType" : "URL"
},
"schemaVersion" : 2,
"recordVersion" : 2,
"acl" : [ {
"id" : 3,
"sid" : "SELF",
"permission" : "ADMINISTRATE"
} ],
"metadataDocumentUri" : "http://localhost:8040/api/v1/metadata/6785ad43-9a17-40b5-9653-220a8232ef2f?version=2",
"documentHash" : "sha1:1844c8057b673ae260fcc6b6ba146529b2b52771"
} ]
« PREVIOUS | NEXT » |
---|---|