Hello Everyone, Here is my requirement. I want to...
# help
s
Hello Everyone, Here is my requirement. I want to mock a rest api which returns the stub i created on the fly after starting the wiremock. for example, Say i created a xyz.txt (with some content) file as bodyFileName in the response template and say i started wiremock container. In my testing, I want to update contents of the stub dynamically through an endpoint. is this possible in wiremock ?
t
You can update an existing stub by ID using WireMock’s admin API
if you’re calling it directly it’d be a
PUT
to
/__admin/mappings/{stubId}
l
The full admin API spec can be found here - https://wiremock.org/docs/standalone/admin-api-reference/
s
Thank you @Tom and @Lee Turner . Will study docs and post questions if any
👍 1