A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
To get a specific version of the metadata schema document just send an HTTP GET with the linked ‘schemaId’ and the version number you are looking for as query parameter:
$ curl 'http://localhost:8040/api/v1/schemas/my_first_json?version=1' -i -X GET
HTTP-wise the call looks as follows:
GET /api/v1/schemas/my_first_json?version=1 HTTP/1.1
Host: localhost:8040
As a result, you receive the initial XSD schema document (version 1).
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 425
Accept-Ranges: bytes
{
"$schema" : "http://json-schema.org/draft/2019-09/schema#",
"$id" : "http://www.example.org/schema/json",
"type" : "object",
"title" : "Json schema for tests",
"default" : { },
"required" : [ "title" ],
"properties" : {
"title" : {
"$id" : "#/properties/string",
"type" : "string",
"title" : "Title",
"description" : "Title of object."
}
},
"additionalProperties" : false
}
« PREVIOUS | NEXT » |
---|---|