Retrieving api url and status code of responses
nickatnight opened this issue · 2 comments
nickatnight commented
Hello,
What is the preferred method to get the request url and response status code (for 2xx codes) from a ModelNormal response object?
phoenixy1 commented
@otherchen do you happen to know the answer to this one (or know who might)? I'm not a deep expert in the python libraries.
spacether commented
If the client is regenerated with openapi-generator v6.2.0 then the response will be included when one gets a result back from an endpoint. One can see that response here
api_response.response is type urllib3.HTTPResponse which includes
- status
- request_url