AnsweredAssumed Answered

How to allow encoded slashes in url (REST) with id in PathParam ?

Question asked by APIMGTEtudes18000094 on Nov 4, 2016

Hi,

 

We expose an API REST with a PathParam contains slashes.

 

Example :

https://api.mydomain.fr/ressource/{id}/child-ressource

 

When I execute my api with a {id} contains slashes, I encoded url like this :  https://api.mydomain.fr/ressource/foo%2Fbar/child-ressource

I obtain the result :  HTTP/1.1 400 Bad Request

and there is no audit for my request.

 

How to allow encoded slashes in url ?

 

Regards,

David

Outcomes