How do I manually enter the request header Authorization in the Swagger document
miaokela opened this issue · comments
Ask a question
How do I manually enter the request header Authorization in the Swagger document
Additional context
I need the token to carry when verifying the interface
You need to configure flask-restx Swagger security, see the docs here: https://flask-restx.readthedocs.io/en/latest/swagger.html#documenting-authorizations
There is also a great tutorial for flask-restx that details how to configure JWT like tokens, but it can be used for any authentication scheme in a simialr way: https://aaronluna.dev/series/flask-api-tutorial/part-4/#swagger-ui