Unable to get response code for API call using swagger formatter

Hi,

I created a swagger UI content type instead of using the smart docs, but i'm facing issues while fetching the response code. Response is empty that is true but response code should be 4O1, which is not showing in the response.

swagger-renderring1.pngswagger-renderring2.png

0 2 763
2 REPLIES 2

Hi @Pratyush Mohapatra - you will need to share more details. Not sure what is your spec like, did you trace your call in Apigee and see what its returning ?

Hi @Sai Saran Vaidyanathan,

I'm getting the request in edge and it is responding with a fault, status code 401 as per the trace log. In the browser network logs, under header section I can see the request to be in a proper state, and status code is 401 Unauthorized. But there is no response code or response available in response tab. Have added CORS to the API.

And more over I also don't see the security definition in the Swagger UI, probably swagger ui formatter doesn't render it from json file.

Regards,

Pratyush