A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
For getting all accessible datacite records of schema documents type:
$ curl 'http://localhost:8040/metastore/api/v2/schemas/' -i -X GET
Same for HTTP request:
GET /api/v2/schemas HTTP/1.1
Host: localhost:8040
As a result, you receive a list of metadata schema records.
HTTP/1.1 200 OK
Content-Range: 0-0/1
Content-Type: application/json
Content-Length: 1022
[ {
"id" : "my_first_json",
"identifier" : {
"id" : 1,
"value" : "(:tba)",
"identifierType" : "DOI"
},
"creators" : [ {
"id" : 1,
"givenName" : "SELF"
} ],
"titles" : [ {
"id" : 1,
"value" : "Title for my_first_json"
} ],
"publisher" : "SELF",
"publicationYear" : "2024",
"resourceType" : {
"id" : 1,
"value" : "JSON_Schema",
"typeGeneral" : "MODEL"
},
"dates" : [ {
"id" : 1,
"value" : "2024-11-25T13:50:05Z",
"type" : "CREATED"
} ],
"relatedIdentifiers" : [ {
"id" : 1,
"identifierType" : "URL",
"value" : "http://localhost:8040/metastore/api/v2/metadata/my_first_json?version=1",
"relationType" : "IS_NEW_VERSION_OF"
} ],
"alternateIdentifiers" : [ {
"id" : 1,
"value" : "my_first_json",
"identifierType" : "INTERNAL"
} ],
"version" : "3",
"lastUpdate" : "2024-11-25T13:50:06.037Z",
"state" : "VOLATILE",
"acls" : [ {
"id" : 1,
"sid" : "SELF",
"permission" : "ADMINISTRATE"
} ]
} ]
The modified HTTP request with pagination looks like follows:
GET /metastore/api/v2/schemas/?page=0&size=20 HTTP/1.1
Host: localhost:8040
« PREVIOUS | NEXT » |
---|---|