Customize REST API Responses
OutSystems allows you to customize the information sent in responses when exposing a REST API.
For that, do the following:
- In the Logic tab, open the Integrations folder.
- In the exposed REST API, set the property On Response to
New OnResponse
. - Open the
OnResponse
callback action that is now available under the REST API. - Design the logic to customize the information of the response.
Once in use, the OnResponse callback will be executed for all methods exposed by the REST API.