Example data service

Deze pagina’s zijn in het engels ten behoeve van mogelijk internationale ontwikkelaars

A data service provider should define an endpoint for a resource in order to enable a specific data service in the DSGO. As the exact implementation of data service is highly dependent on the specific resource, the context, and the needs of the data service provider, no specific service is presented here. Only an example of a generic data service is presented for reference purposes.

Example /resources endpoint

This example is based on the requirements defined in the trust framework and allows various operations to be performed on a number of sample resources defined as a collection. The sample collection is defined as follows. It contains a list of different colours and their representative hex value, which can queried:

Note, this example includes a small amount of JSON formatted data. As the trust framework is data standard agnostic, this could be any format, including XML or Base64 encoded data.

[{ "id": "001", "data": { "colour": "red", "value": "#f00", "description": "Hex value of the colour red" } }, { "id": "002", "data": { "colour": "green", "value": "#0f0", "description": "Hex value of the colour green" } }, { ... }]

 

Â