Getting a Datacite Schema Record (API v2)

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

Getting a Datacite Schema Record (API v2)

For obtaining one datacite record you have to provide the ‘schemaId’.

NOTE
As ‘Accept’ field you have to provide ‘application/vnd.datacite.org+json’ otherwise you will get the landing page of the digital object instead.
$ curl 'http://localhost:8040/metastore/api/v2/schemas/my_first_json' -i -X GET \
    -H 'Accept: application/vnd.datacite.org+json'

In the actual HTTP request just access the path of the resource using the base path and the ‘schemaid’. Be aware that you also have to provide the ‘Accept’ field.

GET /metastore/api/v2/schemas/my_first_json HTTP/1.1
Accept: application/vnd.datacite.org+json
Host: localhost:8040

As a result, you receive the datacite record send before and again the corresponding ETag in the HTTP response header.

HTTP/1.1 200 OK
ETag: "855670887"
Content-Type: application/vnd.datacite.org+json
Content-Length: 806

{
  "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"
  } ],
  "alternateIdentifiers" : [ {
    "id" : 1,
    "value" : "my_first_json",
    "identifierType" : "INTERNAL"
  } ],
  "version" : "1",
  "lastUpdate" : "2024-11-25T13:50:05.753Z",
  "state" : "VOLATILE",
  "acls" : [ {
    "id" : 1,
    "sid" : "SELF",
    "permission" : "ADMINISTRATE"
  } ]
}
« PREVIOUS NEXT »