A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
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/metastore/api/v2/metadata/d9c917ee-160e-460c-b169-8f952ab505c7?version=1' -i -X GET \
-H 'Accept: application/json'
HTTP-wise the call looks as follows:
GGET /metastore/api/v2/metadata/d9c917ee-160e-460c-b169-8f952ab505c7?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 » |
---|---|