OutSystems allows you to run logic before executing each request of an exposed REST API.
For that, do the following:
- In the Logic tab, open the Integrations folder.
- In the REST API, set the property On Request to
- Open the
OnRequestcallback action that is now available under the REST API.
- Design the logic to preprocess the request.
Once in use, the OnRequest callback will be executed for all methods exposed by the REST API.