I am able to start the server and trying all of the endpoints. I saw that the \users and tasks required authentication. How can I get the token generated to try out these 2 endpoints at swagger? Right now it will give me unauthorized response, because I don't have the token.
make run
poetry run python main.py
INFO: Will watch for changes in these directories: ['/Users/quankhuc/FastAPI-Production-Boilerplate']
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [61146] using WatchFiles
INFO: Started server process [61152]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:52430 - "GET /docs HTTP/1.1" 200 OK
INFO: 127.0.0.1:52430 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:52430 - "GET /v1/users/me HTTP/1.1" 401 Unauthorized
INFO: 127.0.0.1:52563 - "GET /v1/tasks/ HTTP/1.1" 401 Unauthorized
I am able to start the server and trying all of the endpoints. I saw that the
\users
andtasks
required authentication. How can I get the token generated to try out these 2 endpoints at swagger? Right now it will give me unauthorized response, because I don't have the token.