Is it possible to some how send multiple webhooks? #348

Closed
opened 2025-12-29 08:26:37 +01:00 by adam · 10 comments
Owner

Originally created by @ShaunJahn on GitHub (May 18, 2021).

Originally assigned to: @StefH on GitHub.

When setting up a mock endpoint and using:
WithWebhook for single works perfectly.

Would be possible to use the same logic but provide a list of Webhook and send multiple webhooks at a time?

Originally created by @ShaunJahn on GitHub (May 18, 2021). Originally assigned to: @StefH on GitHub. When setting up a mock endpoint and using: `WithWebhook` for single works perfectly. Would be possible to use the same logic but provide a list of `Webhook` and send multiple webhooks at a time?
adam added the feature label 2025-12-29 08:26:37 +01:00
adam closed this issue 2025-12-29 08:26:37 +01:00
Author
Owner

@StefH commented on GitHub (May 18, 2021):

@ShaunJahn Do you mean multiple webhooks? Or sending the same webhook to multiple urls?

@StefH commented on GitHub (May 18, 2021): @ShaunJahn Do you mean multiple webhooks? Or sending the same webhook to multiple urls?
Author
Owner

@ShaunJahn commented on GitHub (May 18, 2021):

Trigger multiple webhooks on the same request.

@ShaunJahn commented on GitHub (May 18, 2021): Trigger multiple webhooks on the same request.
Author
Owner

@StefH commented on GitHub (May 18, 2021):

Can you try MyGet preview version:
1.4.14-ci-15092

@StefH commented on GitHub (May 18, 2021): Can you try MyGet preview version: 1.4.14-ci-15092
Author
Owner

@ShaunJahn commented on GitHub (May 19, 2021):

Do you mean update WireMock.Net to that version? I tried but can't be found.

@ShaunJahn commented on GitHub (May 19, 2021): Do you mean update `WireMock.Net` to that version? I tried but can't be found.
Author
Owner

@StefH commented on GitHub (May 19, 2021):

@ShaunJahn
Correct, I mean updating the NuGet to that version. But this version is not defined on nuget.org, but on myget.

See this wiki link for details:
https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions

@StefH commented on GitHub (May 19, 2021): @ShaunJahn Correct, I mean updating the NuGet to that version. But this version is not defined on nuget.org, but on myget. See this wiki link for details: https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
Author
Owner

@ShaunJahn commented on GitHub (May 19, 2021):

Thank you for this,
I changed the code and both webhooks went through,
image

but the body seems to come back as null
image

@ShaunJahn commented on GitHub (May 19, 2021): Thank you for this, I changed the code and both webhooks went through, ![image](https://user-images.githubusercontent.com/35134264/118799093-a35c2280-b89e-11eb-9794-73279d7a4452.png) but the body seems to come back as null ![image](https://user-images.githubusercontent.com/35134264/118798939-7c055580-b89e-11eb-8b76-20ae596eb0f6.png)
Author
Owner

@StefH commented on GitHub (May 19, 2021):

I think in your case you need DetectedBodyType = BodyType.String

See also:
https://github.com/WireMock-Net/WireMock.Net/wiki/Webhook#c

@StefH commented on GitHub (May 19, 2021): I think in your case you need `DetectedBodyType = BodyType.String` See also: https://github.com/WireMock-Net/WireMock.Net/wiki/Webhook#c
Author
Owner

@ShaunJahn commented on GitHub (May 19, 2021):

Can confirm that it's working perfectly after that change.
Thank you @StefH

@ShaunJahn commented on GitHub (May 19, 2021): Can confirm that it's working perfectly after that change. Thank you @StefH
Author
Owner

@StefH commented on GitHub (May 19, 2021):

OK. Thank you for verifying.

I'll merge this PR and release a official new NuGet shorty.

@StefH commented on GitHub (May 19, 2021): OK. Thank you for verifying. I'll merge this PR and release a official new NuGet shorty.
Author
Owner

@ShaunJahn commented on GitHub (May 19, 2021):

Awesome, thank you so much for this and the great work.

@ShaunJahn commented on GitHub (May 19, 2021): Awesome, thank you so much for this and the great work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#348