How do I use after_request and not include swagger_ui requests and responses in it? #1902
Unanswered
davehouser1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using connexion with swagger_ui.
I want to print the request and response payload body of ever request and response. I am aware there is a app.app.after_request and app.app.before_request, however when I try to use after_request, it is breaking the swagger_ui. IT seem even the swagger_ui responses (when swagger sends all of its files like .js) get routed to after_request. Is this expected? Is there a way to make this not happen, and only include requests and responses from my app routes not swagger_ui?
My post here details the problem more. can anyone help?
https://stackoverflow.com/questions/78212322/flask-how-can-i-use-after-request-to-print-out-all-responses-and-not-break-swagg
Beta Was this translation helpful? Give feedback.
All reactions