A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
If you want to find all metadata records updated after a specific date.
Command line:
$ curl 'http://localhost:8040/api/v1/metadata?from=2022-05-20T07%3A54%3A03.808842298Z' -i -X GET
HTTP-wise the call looks as follows:
GET /api/v1/metadata?from=2022-05-20T07%3A54%3A03.808842298Z HTTP/1.1
Host: localhost:8040
You will get the current version metadata records updated ln the last 2 hours.
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"
} ]
If you want to find all metadata records updated in a specific date range.
Command line:
$ curl 'http://localhost:8040/api/v1/metadata?from=2022-05-20T07%3A54%3A03.808842298Z&until=2022-05-20T08%3A54%3A03.808835639Z' -i -X GET
HTTP-wise the call looks as follows:
GET /api/v1/metadata?from=2022-05-20T07%3A54%3A03.808842298Z&until=2022-05-20T08%3A54%3A03.808835639Z HTTP/1.1
Host: localhost:8040
You will get an empty array as no metadata record exists in the given range:
HTTP/1.1 200 OK
Content-Range: 0-9/0
Content-Type: application/json
Content-Length: 3
[ ]
« PREVIOUS | |
---|---|