2

So I have an API in swagger that works properly. However, I want to disable it automatically following 302 redirect as I need the query params on the Location header of a 302. Is there any way how to do it in Swagger / Open API 3?

iamjoshua
  • 1,157
  • 3
  • 16
  • 33

1 Answers1

1

Swagger UI and Swagger Editor always follow redirects. To see 3xx responses, test the requests using non-browser tools such as curl. You can copy curl commands from Swagger UI.

curl https://httpbin.org/status/302 -i
Helen
  • 87,344
  • 17
  • 243
  • 314