Forum Discussion
HI,
Yes I have an examples, I made some.
But currently, I have to document 20+ endpoints, that are working, so I can get an example of response by calling them directly. So that would save time on organizing response, then copying. That would be non error prone, also time consuming.
So I want to call existing API and simply save response.
Is it possible with swagger?
SwaggerInspector (https://inspector.swagger.io/) will let you call an existing API, save the responses to move them into an OAS definition. Give it a try with your or a simple API and see how you get on.
- madcatzx5 years agoOccasional Contributor
I know this in theory, as title of this post is saying: Integration between Hub and Inspector.
Is there any tutorial or some documentation on this exact thing?
Because I couldn't manage to save response with inspector and import it back to Swagger HUB.
- alex-savage5 years agoOccasional Contributor
Only guide I have ever seen was the one I posted in the first reply: https://swagger.io/blog/api-development/how-to-perform-a-basic-api-test/ has a nice video too. Hope that can help you
- madcatzx5 years agoOccasional Contributor
Thank You, but unfortunatelly, its nothing in that video, there are some mentions in documentation, but it doesnt seem possible.
Thats why I was writting to forum, maybe someone will have practical experience here... 😞