Accessing Metadata Document

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

Accessing Metadata Document

For accessing the metadata the location URL provided before may be used. The URL is compiled by the id of the metadata and its version.

$ curl 'http://localhost:8040/api/v1/metadata/6785ad43-9a17-40b5-9653-220a8232ef2f?version=1' -i -X GET \
    -H 'Accept: application/json'

HTTP-wise the call looks as follows:

GET /api/v1/metadata/6785ad43-9a17-40b5-9653-220a8232ef2f?version=1 HTTP/1.1
Accept: application/json
Host: localhost:8040

The linked metadata will be returned. The result is sent back to the user and will look that way:

HTTP/1.1 200 OK
Content-Length: 40
Accept-Ranges: bytes
Content-Type: application/json

{
  "title" : "My first JSON document"
}

What you see is, that the metadata is untouched.

« PREVIOUS NEXT »