Getting a List of Metadata Schema Records

A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.

Getting a List of Metadata Schema Records

Obtaining all accessible metadata schema records.

$ curl 'http://localhost:8040/api/v1/schemas' -i -X GET

Same for HTTP request:

GET /api/v1/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-9/1
Content-Type: application/json
Content-Length: 465

[ {
  "schemaId" : "my_first_json",
  "schemaVersion" : 2,
  "mimeType" : "application/json",
  "type" : "JSON",
  "createdAt" : "2022-05-20T09:54:01Z",
  "lastUpdate" : "2022-05-20T09:54:02.753Z",
  "acl" : [ {
    "id" : 1,
    "sid" : "SELF",
    "permission" : "ADMINISTRATE"
  } ],
  "schemaDocumentUri" : "http://localhost:8040/api/v1/schemas/my_first_json?version=2",
  "schemaHash" : "sha1:68c72ab169770015f9b68645d0a50ac33a98f46c",
  "doNotSync" : true
} ]
NOTE
Only the current version of each schemaId is listed.
The header contains the field ‘Content-Range” which displays delivered indices and the maximum number of available schema records. If there are more than 20 schemas registered you have to provide page and/or size as additional query parameters.

The modified HTTP request with pagination looks like follows:

GET /api/v1/schemas?page=0&size=20 HTTP/1.1
Host: localhost:8040

« PREVIOUS NEXT »