Giovanny Sayas
03/16/2023, 8:37 AMpostServeAction
like the following. Both the triggering call and the webhook call are registered by wiremock standalone as I can see them in the wiremock console, but the webhook is not being made and I don't see any errors in the wm console or in the webhook api endpoint. Is there any way to debug this further? thanks in advance!
final MappingBuilder mappingBuilder = post(urlPathMatching("/v1/triggering-endpoint"))
.withName(MsMock.getTestName())
.willReturn(aResponse()
.withStatus(200)
.withHeader("content-type", "application/json")
.withBody("{\"id\": " + id + "}"))
.withPostServeAction("webhook", webhook()
.withMethod("POST")
.withUrl("<https://myinternalapi.net/webhook-api-endpoint>")
.withHeader("Content-Type", "application/json")
.withBody("{ \"someField\": \"someValue\" }");
Tom
03/16/2023, 9:26 AMGiovanny Sayas
03/16/2023, 10:46 AMTom
03/16/2023, 10:48 AM