Layer 7 API Management

Expand all | Collapse all

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

Jump to Best Answer
  • 1.  How to allow encoded slashes in url (REST) with id in PathParam ?

    Posted 11-04-2016 09:59 AM

    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



  • 2.  Re: How to allow encoded slashes in url (REST) with id in PathParam ?
    Best Answer

    Posted 11-04-2016 11:06 AM

    Hi David,

     

    Does the following Technical solution answer your question

    Knowledge Base Articles 

     

    Document ID: TEC0000001260

     

    Regards

    Seenu Mathew