document response codes of login endpoint

This commit is contained in:
DSeeLP 2025-03-23 22:34:12 +01:00
parent 8be45b2ca6
commit cc5117ff74

View File

@ -27,6 +27,17 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
403:
description: Invalid username or password
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
example:
id: auth.invalid_credentials
message: string
422:
$ref: '#/components/responses/InvalidBody'
default:
$ref: '#/components/responses/Default'
/api/register: