-1

As you might know, Swagger itself provides to test the API using 'Try it out' option as in http://petstore.swagger.io/#!/pet/findPetsByStatus.

I do not know how swagger manages this 'try it out' option but I want to manually keep the response as per different request. Does swagger simulate response without having a proper server ?

Is it possible with swagger? If yes, how ?

Thanks in advance.

Alpesh Prajapati
  • 1,593
  • 2
  • 18
  • 38

1 Answers1

2

Swagger's "try it out" function works by actually calling a live API. You can't use it without a real API running. So it is not possible to simulate responses with the Swagger documentation as it is written.

Tim Holt
  • 3,044
  • 1
  • 18
  • 22