cancel
Showing results for 
Search instead for 
Did you mean: 

Callback not working on SwaggerHub Mock

SOLVED
Highlighted
New Contributor

Callback not working on SwaggerHub Mock

Hello, I cant put the callback to work, here is my spec, that a copied from a example:

https://app.swaggerhub.com/apis/vinicius.folgosa/TesteCallbacks/1.0.0

I created a webhook on https://webhook.site/ and nothing gets there.

Has anyone worked with callbacks in SwaggerHub Mock ?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Moderator

Re: Callback not working on SwaggerHub Mock

Hi @vfolgosa,

 

API Auto Mocking does not support callbacks.


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
Moderator

Re: Callback not working on SwaggerHub Mock

Webhook events and payload are pre-defined, so they cannot be used for callbacks.

 

Please feel free to submit an enhancement request to add support for callbacks in API mocks:
https://support.smartbear.com/message/?prod=SwaggerHub


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

3 REPLIES 3
Highlighted
Moderator

Re: Callback not working on SwaggerHub Mock

Hi @vfolgosa,

 

API Auto Mocking does not support callbacks.


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
New Contributor

Re: Callback not working on SwaggerHub Mock

Thanks Helen, I'm looking for a solution to use the callbacks, or simulate then, do you know if I can define my own events using webhook integration? And fire that event from mock api?

Highlighted
Moderator

Re: Callback not working on SwaggerHub Mock

Webhook events and payload are pre-defined, so they cannot be used for callbacks.

 

Please feel free to submit an enhancement request to add support for callbacks in API mocks:
https://support.smartbear.com/message/?prod=SwaggerHub


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Read the Latest News
JuneSCNJ
Top Kudoed Authors