Skip to main content

Extensibility and Integration

 

OutSystems

Simple Customizations

When using a REST API, logic may be added to customize the information that is sent in requests or received in responses. For that, you have two properties in the REST API that consumes the web service:

  • On Before Request
  • On After Response

To customize the request before it is sent:

  1. Set the On Before Request property of the REST API to OnBeforeRequest action. An action with the same name is made available under the REST API;
  2. Double-click the newly created OnBeforeRequest action to edit it;
  3. Add your own logic to customize the request.

To customize the response after it has arrived:

  1. Set the On After Response property of the REST API to OnAfterResponse action. An action with the same name is made available under the REST API;
  2. Double-click the newly created OnAfterResponse action to edit it;
  3. Add your own logic to customize the response.
  • Was this article helpful?