Getting a List of Datacite Records of all Metadata Documents (API v2)

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

Getting a List of Datacite Records of all Metadata Documents (API v2)

If you want to obtain (current) datacite records of all metadata documents ‘/api/v2/metadata/’ endpoint has to be called. Search will find all current datacite records. There are some filters available which may be combined. All filters for the datacite records are set via query parameters. The following filters are allowed:

[NOTE] 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 datacite records registered you have to provide page and/or size as additional query parameters.

This may look like this:

$ curl 'http://localhost:8040/metastore/api/v2/metadata/' -i -X GET

HTTP-wise the call looks as follows:

GET /metastore/api/v2/metadata/ HTTP/1.1
Host: localhost:8040

As a result, you receive a list of metadata records.

HTTP/1.1 200 OK
Content-Range: 0-0/1
Content-Type: application/json
Content-Length: 1480

[ {
  "id" : "23dd1d7d-f4fa-40ad-a846-0a2c50b06399",
  "identifier" : {
    "id" : 3,
    "value" : "(:tba)",
    "identifierType" : "DOI"
  },
  "creators" : [ {
    "id" : 3,
    "givenName" : "SELF"
  } ],
  "titles" : [ {
    "id" : 3,
    "value" : "Title of first XML metadata document"
  } ],
  "publisher" : "SELF",
  "publicationYear" : "2024",
  "resourceType" : {
    "id" : 3,
    "value" : "XML_Metadata",
    "typeGeneral" : "MODEL"
  },
  "dates" : [ {
    "id" : 3,
    "value" : "2024-11-25T13:50:12Z",
    "type" : "CREATED"
  } ],
  "relatedIdentifiers" : [ {
    "id" : 2,
    "identifierType" : "URL",
    "value" : "https://repo/anyResourceId",
    "relationType" : "IS_METADATA_FOR"
  }, {
    "id" : 3,
    "identifierType" : "URL",
    "value" : "http://localhost:8040/metastore/api/v2/schemas/my_first_xsd?version=2",
    "relationType" : "HAS_METADATA"
  }, {
    "id" : 4,
    "identifierType" : "URL",
    "value" : "http://localhost:8040/metastore/api/v2/metadata/23dd1d7d-f4fa-40ad-a846-0a2c50b06399?version=1",
    "relationType" : "IS_NEW_VERSION_OF"
  } ],
  "alternateIdentifiers" : [ {
    "id" : 3,
    "value" : "23dd1d7d-f4fa-40ad-a846-0a2c50b06399",
    "identifierType" : "INTERNAL"
  } ],
  "version" : "2",
  "lastUpdate" : "2024-11-25T13:50:12.678Z",
  "state" : "VOLATILE",
  "acls" : [ {
    "id" : 5,
    "sid" : "guest",
    "permission" : "READ"
  }, {
    "id" : 4,
    "sid" : "SELF",
    "permission" : "ADMINISTRATE"
  } ]
} ]
« PREVIOUS NEXT »