Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ShaunJahn opened this issue May 18, 2021 · 10 comments
Closed

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

ShaunJahn opened this issue May 18, 2021 · 10 comments
Assignees
Labels

Comments

@ShaunJahn
Copy link

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?

@StefH StefH self-assigned this May 18, 2021
@StefH
Copy link
Collaborator

StefH commented May 18, 2021

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

@ShaunJahn
Copy link
Author

Trigger multiple webhooks on the same request.

@StefH
Copy link
Collaborator

StefH commented May 18, 2021

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

@ShaunJahn
Copy link
Author

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

@StefH
Copy link
Collaborator

StefH commented 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

@ShaunJahn
Copy link
Author

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

but the body seems to come back as null
image

@StefH
Copy link
Collaborator

StefH commented 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

@ShaunJahn
Copy link
Author

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

@StefH
Copy link
Collaborator

StefH commented May 19, 2021

OK. Thank you for verifying.

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

@StefH StefH closed this as completed May 19, 2021
@StefH StefH added feature and removed question labels May 19, 2021
@ShaunJahn
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants