Using search criteria when executing the Gateway Archive API

Sometimes, in a CI-CD implementation, you’ll know exactly what need to be deployed. At the same time, there are times when the scenario calls for more flexibility in order to maximize efficiency. The webMethods API Gateway provides both a Search API and an Archive API. So, one approach is to simply call them in sequence in a script, passing the search results to an Archive REST call. However, there is a more efficient way. It’s not that widely known, but you can use the POST method to send a search criteria payload to the GET resource of the Archive API. “How?”, you may ask. By using the x-HTTP-Method-Override header. Check out this article for details.

1 Like