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

Allow to extend contracts & stubs #1465

Closed
marcingrzejszczak opened this issue Aug 3, 2020 · 2 comments · Fixed by #1466
Closed

Allow to extend contracts & stubs #1465

marcingrzejszczak opened this issue Aug 3, 2020 · 2 comments · Fixed by #1466
Projects
Milestone

Comments

@marcingrzejszczak
Copy link
Contributor

We will add a metadata field to contracts so that you can pass in custom data there. Example of such data will be extending WireMock stubs with webhooks, additional timeouts etc - whatever that is supported by WireMock. Users will be able to add their own metadata entries and register their own post processors.

Related issues:

@gabbigum
Copy link
Contributor

gabbigum commented Nov 1, 2021

Hello, where can I find webhooks example for producer side? And do we need to register webhook-extension on the consumer side? I'm having trouble setting all of this up. If there's some guide/tips somewhere it would be really helpful, thanks!

@marcingrzejszczak
Copy link
Contributor Author

Here you have an example of such a contract

metadata:
wiremock:
stubMapping:
"postServeActions": {
"webhook": {
"headers": {
"Content-Type": "application/json"
},
"method": "POST",
"body": "{ \"result\": \"SUCCESS\" }",
"url": "http://localhost:56299/callback"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
2020.0.0-M4
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants