How can I configure the interceptors' execution order?
The execution of interceptors follows the order they appear in the incoming and outgoing flows. For incoming requests (from client to server), the execution order is from left to right. For responses (from server to client), the execution order is from right to left.
This order is set during the configuration of the flows and can be easily edited.
To edit the order of interceptors in a flow:
-
Access the API card;
-
On the Your API Overview screen, go to the Flows section;
-
Click EDIT;
-
Drag and drop the interceptor to the desired position, as shown in the example below.
In the illustration below, we moved the IP Filtering interceptor before the OAuth interceptor. This optimizes the process so that only requests that pass through IP filtering will have their credentials validated. In the previous configuration, all requests would undergo validation before being filtered by IP. Editing the order of interceptors
|
If you are unable to change the order of the interceptors, check if there is another flow from which it originated. Interceptors inherited from another flow appear in gray and cannot be edited.
|
Share your suggestions with us!
Click here and then [+ Submit idea]