educloudalliance / xroad-rest-gateway

Unmaintained repository. Development moved to
https://github.com/vrk-kpa/REST-adapter-service
European Union Public License 1.1
20 stars 11 forks source link

Define X-Road SOAP headers as URL parameters in Cosumer Gateway #9

Closed petkivim closed 9 years ago

petkivim commented 9 years ago

Currently it's possible to use the below HTTP headers when sending a request to Consumer Gateway:

In addition to HTTP headers, it should be possible to use URL parameters too for sending the same information. For example:

http://localhost:8080/RESTGateway/Consumer/FI_PILOT.GOV.1019125-0.Demo2Service.getOrganizationList.v1/49?X-XRd-UserId=test&X-XRd-MessageId=22&X-XRd-NamespaceSerialize=http://vrk-test.x-road.fi/producer&X-XRd-NamespacePrefixSerialize=ks&Accept=application/json
petkivim commented 9 years ago

Done. Added possibility to use URL parameters for defining values for the following headers: X-XRd-UserId, X-XRd-MessageId, X-XRd-NamespaceSerialize, X-XRd-NamespacePrefixSerialize and Accept. URL parameters are the primary source and HTTP headers are the secondary source.