This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Parametrized Backend Calls #95
Unanswered
ACosaLinan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am currently exposing a service as an API at the url: http://backend-endpoint.com. The API documentation is found at http://backend-endpoint.com/api. For example the url to access an asset might be: http://backend-endpoint.com/{{id}}?param={{param}} where id and param represent a path segment and param respectively.
Following the documentation at https://international-data-spaces-association.github.io/DataspaceConnector/CommunicationGuide/v6/Parametrization#examples, a parametrized call (either path, parameters or both) seems to be possible.
Let's say:
At this point, the provider is supposed to be ready to serve the service through the API. In order to cosume the service, after the contract agreement and get it registered as "request" in the consumer I am trying to access the resource by:
{{conector_consumer}}/api/artifacts/{{artifactConsumerId}}/data/{{id}}?param={{param}}&download=true&agreementUri={{agreementId}}
It returns an Response with code 417 Expectation Failed
{
"details": "{reason=https://w3id.org/idsa/code/INTERNAL_RECIPIENT_ERROR, payload=Could not retrieve data., type=class de.fraunhofer.iais.eis.RejectionMessageImpl}",
"message": "Failed to retrieve data."
}
The error is generated by the provider connector. See the logs in connector_provider_logs.txt.
I attach a Postman collection for reproducibility Dataspace Connector v6.0.0 Example for Github.txt as well.
I will appreciate any support.
Thanks very much in advance.
Kind regards,
Alejandro
NOTE: It works when the accessUrl is set to http://backend-example.com/{{id}}?param={{param}} and the asset is accessed from {{conector_consumer}}/api/artifacts/{{artifactConsumerId}}/data&download=true&agreementUri={{agreementId}}
Beta Was this translation helpful? Give feedback.
All reactions