The REST API is available at api/v1/data
. Documentation about the available API methods can be found at /docs/api
.
The PUT and POST actions expect and XML formatted body in the HTTP request. The Content-Type HTTP request header also needs to be set accordingly. Currently, supported: application/lido+xml. Finally, you will need to add a valid OAuth token via the access_token query parameter.
A valid POST HTTP request looks like this:
Sending a GET HTTP request to the api/v1/data
endpoint will return a paginated list of all the records available in the API. The endpoint will return a HTTP response with a JSON formatted body. The endpoint respects the HATEOAS constraint.
Content negotation is currently only supported via a file extension on individual resource URL's.
The datahub supports the OAI-PMH protocol. The endpoint is available via the /oai
path.
The datahub doesn't implement grouping of records nor soft deletes. As such, the OAI endpoint doesn't OAI sets and indicating whether a record has been deleted.
The datahub API can be set up to be either a public or a private API. The public_api_method_access
parameter in the parameters.yml
configuration file allows you to configure which parts of the API are public or private:
The datahub requires OAuth authentication to ingest or retrieve metadata records. The administrator has to issue a user account with a client_id and a client_secret to individual Users or client applications. Before clients can access the API, they have to request an access token:
Example output:
The endpoint can also be used to revoke both access and refresh tokens.
Example output:
When you surf to your Datahub installation, you will land on the Dashboard of the application. The Dashboard displays the number of records currently stored in the installation and links to the technical documentation of the API's.
A Datahub installation has a name which is prominently featured on the
Dashboard and can be configured in app/config/parameters.yml
.
The Dashboard also displays a link to the website of the organisation or individual who manages the installation and a contact e-mail address.
During installation, a 'administrator' user was created with the
username admin
and the default password datahub
.
When you surf to /login
, you will be presented with a login
form. Use these default credentials as you log in for the first time.
You need to manually change the password to secure your installation.
To be written.
To be written.