Skip to content

Consume data

Igor Petrov edited this page May 15, 2024 · 5 revisions

Consume data via Frontend

If a suitable offer has been found in the MDS Broker and the Connector Endpoint has been noted or the Connector Endpoint of another connector is already known, it can be entered in the Catalog tab of your own connector. This will search and list the other connector's offerings that your connector is allowed to see, given the limitations of the offerings.

300773028-19cf00f9-7fde-4706-bc9f-5db2801d9579

Clicking on a data offer opens the detail window with more details about the offer. By clicking on the Negotiate button, the contract negotiation between the two connectors starts.

300773478-a38b3732-5d66-4f5f-bc80-1898dbbddfd9

If the contract negotiation ends successfully with an agreement, the new contract will be visible in the Contracts tab. By clicking on the new contract and pressing the Transfer button, the actual data transfer can be started. Further information about the data sink where the transferred data should be stored needs to be entered.

For test purposes and only for public data you can use services like Webhook, which show all information from incoming HTTP requests.

Consume data via Frontend using parametrization

Find and negotiate the contract offer as described above. Then Go to Contracts and press the button Transfer.

Enter a destination endpoint of your backend. In this example we will simulate the backend using a webhook endpoint.

Press Show Http Datasourse Parameterization Fields

Define the custom method (usually GET), subpath (as part of the URL between the first slash and the question mark) and query parameters. Then press Transfer.

You will see the results on the webhook site. Only messages with "zustandsklasse=dicht" should be transferred.

Consume data via API

First of all you need an access tokento call your CaaS-API (for on premise connector configure your access yourself depending on authorization mechanism you are using).

Then you need to create a custom json request for the asset creation. You can use this one as template.

Last but not least you need to send the json request to your API (in case of CaaS using the authorisation token from the auth script). You can just use this python script as example or write your own script. Note: use the endpoint POST [Connector base url]/api/management/v2/transferprocesses for the transfer process.

Consume data via API using parametrization

Please use this template as example.

Clone this wiki locally