https://linen.dev logo
Title
a

Ankur Agarwal

02/07/2023, 8:26 AM
Hi do we any example where we can proxy post calls in wiremock? i was referring to documentation available at: https://wiremock.org/docs/proxying/ all example mentioned are for GET calls here.
t

Tom

02/07/2023, 8:57 AM
You can set up a mock API in WireMock Cloud, with a POST stub (or any other method you like) then proxy through to that. This is often what I do when testing locally.
a

Ankur Agarwal

02/07/2023, 9:22 AM
any documentation or example available?
t

Tom

02/07/2023, 10:05 AM
Here’s the getting started doc for Cloud: https://docs.wiremock.io/docs/getting-started/ You can create a basic POST stub very easily, then set up WireMock for proxying as documented and make a POST request to it rather than GET with e.g. Postman.
🙌 1