app = FastAPI(
docs_url="/api/docs", redoc_u'rl="/api`/redoc", openapi_url="/api/openapi.json"
)
When changing docs_ur c/docs parameters to /api/docs, an error occurs during registration(authorization) in swager …/api/docs :
INFO: 127.0.0.1:50312 – “POST /api/api/auth/token HTTP/1.1″ 404 Not Found(Must be POST /api/auth/token HTTP/1.1” 200 OK). Handles where there is no authorization work without errors, there is no way to log in.
How can I fix it by leaving the handle path /api/auth/token(without changing to api/api…) and saving docs_url=”/api/docs”?
enter image description here
I tried to find it in the documentation, but I didn’t find it. I’ve been surfing, asking on social media
Артур Шаймарданов is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.