Hello,
we're encountering the following situation:
- We are interacting with a custom REST API provided by a low-code platform.
- One of the endpoints allows for deleting records by calling a DELETE method on an endpoint url structured as https://{base_url_of_our_tenant_on_the_lowcode_platform}/api/object/{id_of_the_record} .
- After executing the delete, this endpoint redirects to another, final endpoint /api/success which only serves to provide a status header (200 OK) and status message in the body. In the Request Header, a "Referer" key is added with the URL of the original request.
When calling the DELETE endpoint in Postman, provided the id in the URL can be resolved to a given record:
- using the default Postman settings, the record is deleted and we receive the expected response (200 OK). We see that the DELETE request was followed by a GET request on the final endpoint.
- when not allowing redirects (see screenshot below), the record is deleted and we receive a 302 Found. The logs only show a DELETE request.
- when allowing redirects again, but enabling the 'Follow original HTTP Method' option, we receive a 404 Not Found. The original DELETE request if followed by a DELETE request on the final endpoint.
When calling the DELETE from the EasyMorph (iterate) web request action:
- the record is deleted, but we receive a Status 404 Not Found
That's a long explanation for a set of short questions:
- Does the (Iterate) Web Request action allow for redirects?
- If so, does is stick to the original HTTP Method when following the redirect (in this case, DELETE) ?
- How would you assess the feasibility and value of adding options on the Web Request actions to manage these settings, similar to the Postman options mentioned above?