Special characters in REST API URL Path
Question

Hi,

My client has a requirement of having a method in an exposed REST API in OutSystems with the URL Path like this: "/Schemas/urn:ietf:params:scim:schemas:core:2.0:User".

However, the ":" character is not allowed in the URL Path field of the method in the REST API, is there any workaround to achieve this or it's something that is not possible at all?



Thanks,

Marco Guimarães

We managed to get a solution for this: created a redirect rule in service center (Administration -> SEO URLs -> Redirect Rules List), from the base URL used by the client (with special characters) to our API URL.

This way the original URL is transformed and our API method is called.


Regards,

Marco Guimarães

mvp_badge
MVP

Your client has a requirement that is not possible: ":" is not a valid character in a URL.

EDIT: Unfortunately, it's not possible to URL-encode the : in an exposed REST API. Only in consumed REST URLs you can URL-encode invalid characters.

We managed to get a solution for this: created a redirect rule in service center (Administration -> SEO URLs -> Redirect Rules List), from the base URL used by the client (with special characters) to our API URL.

This way the original URL is transformed and our API method is called.


Regards,

Marco Guimarães

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.