A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
If you want to find all records belonging to an external resource. MetaStore may hold multiple metadata documents per resource. (Nevertheless only one per registered schema)
Command line:
$ curl 'http://localhost:8040/api/v1/metadata?resoureId=https%3A%2F%2Frepo%2FanyResourceId' -i -X GET
HTTP-wise the call looks as follows:
GET /api/v1/metadata?resoureId=https%3A%2F%2Frepo%2FanyResourceId HTTP/1.1
Host: localhost:8040
You will get the current version metadata record.
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 » |
---|---|