docs: user module
In-line and Swagger docs improvements on the User module and endpoints
This commit is contained in:
parent
6871fcd75d
commit
83a24a91f4
3 changed files with 105 additions and 34 deletions
11
src/main.py
11
src/main.py
|
|
@ -26,12 +26,21 @@ if settings.ENVIRONMENT.is_deployed:
|
|||
pass
|
||||
|
||||
|
||||
tags_metadata = [
|
||||
{
|
||||
"name": "User",
|
||||
"description": "User related operations, includes getting information about the current user",
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
swagger_ui_init_oauth={
|
||||
"clientId": auth_settings.CLIENT_ID,
|
||||
"usePkceWithAuthorizationCodeGrant": True,
|
||||
"scopes": "openid profile email",
|
||||
}
|
||||
},
|
||||
openapi_tags=tags_metadata,
|
||||
)
|
||||
|
||||
# Type inspection disabled for middleware injection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue