You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you run a "try it out" API call in Swagger UI, you get what appears to be test data. In the example below, I am getting Grand Theft Auto, which is not a game in my library.
To Reproduce
Steps to reproduce the behavior:
Go to Swagger UI /api/docs
Log in
Pick an API call (I chose /api/v1/games
Run the call
Expected behavior
Proper data, from the "production" database.
The text was updated successfully, but these errors were encountered:
KairuByte
changed the title
Swagger UI "Try it out" appears to be polling a test database?
Swagger UI "Try it out" appears to be polling a test database
Sep 9, 2023
There is no test database.
It works perfectly fine.
Make sure to set the server and authentication correctly at the top and actually execute the request instead of just checking the example data in the YAML.
Hrm, I suppose I was missing the error between the two in this image, so the title should be "Try it now does not work" as no matter my inputs, this is the result:
Honestly, this could be a bug to report on https://github.com/swagger-api/swagger-ui. I can't control this interface a lot, so I'm not sure why it wouldn't work on an iPhone. It might be related to this browser or CORS issue. Unfortunately, I don't have the option to configure enableCors in https://github.com/nestjs/swagger either. I don't think disabling "Try it Out" is necessary, but I can do that as well if needed.
Describe the bug
When you run a "try it out" API call in Swagger UI, you get what appears to be test data. In the example below, I am getting Grand Theft Auto, which is not a game in my library.
To Reproduce
Steps to reproduce the behavior:
/api/docs
/api/v1/games
Expected behavior
Proper data, from the "production" database.
The text was updated successfully, but these errors were encountered: