The HTTP Method interceptor "swaps" the HTTP method of the current call.
For example, imagine that there is a GET request to a given API resource (e.g.: /stores/{id}), but your server supports only POST requests.
You can use this interceptor to transform the HTTP method of the incoming request from GET to POST.
This is the architecture of the interceptor, with the from-GET-to-POST example:

The request is received by the Gateway, which executes the HTTP Method interceptor.
The interceptor turns the method coming from the request (GET) into the method registered on the Manager (POST).
After the transformation, the Gateway forwards the request to the API server but now with the desired method.
The interceptor can only be used in the request flow.
After adding it to the flow, select the desired method among the options on the list, as in the image below. The method selected will be the one forwarded to the backend.

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more