eclipse-edc / Connector

EDC core services including data plane and control plane
Apache License 2.0
288 stars 240 forks source link

Data Plane Framework - Pass Path Information #881

Closed MoritzKeppler closed 2 years ago

MoritzKeppler commented 2 years ago

Feature Request

The public dataplane api catches all incoming http calls but drops the path information before calling the actual service in the backend. Query params and http method get already passed properly. Propose to append the path retrieved to the URL that is used to call the backend service. We could also make this configurable (e.g. toggles for "pass http method", "pass query params", "pass path information", ...)

Which Areas Would Be Affected?

DPF and maybe Assets

Why Is the Feature Desired?

Integration of REST APIs like the one described by AAS https://app.swaggerhub.com/apis/Plattform_i40/AssetAdministrationShell-REST-API/Final-Draft It should be possible to grant access to multiple endpoints / pathes via one EDC contract, e.g. grant access to a complete AAS.

Solution Proposal

pass path information similar to how we pass query params today, e.g. just add path information retrieved in DataPlanePublicApiRequestFilter to the end of the DataAddress that is called on provider side.

Type of Issue

improvement

Checklist

MoritzKeppler commented 2 years ago

@bscholtes1A

dr-markus commented 2 years ago

Are HTTP-Header already passed?