OutSystems Platform allows you to customize the URL of your REST APIs according to your needs.
To customize a URL, you need to do the following:
In this example we have a Contacts application that exposes a REST API. Contacts are fetched using the following method and URL:
Now, we want the URL to identify the collection ('Contacts') and the resource, as follows:
To customize the URL, follow these steps:
Notice how the value in the 'URL' property changed.
We've deployed the application to our environment in the public cloud.
To test the method, we use the following curl command:
And the response is:
Expose Data Using REST | Exposed REST API Method Properties