diff --git a/docs/controllers/AuthController.yaml b/docs/controllers/AuthController.yaml index 04b9a05a7..76b9085aa 100644 --- a/docs/controllers/AuthController.yaml +++ b/docs/controllers/AuthController.yaml @@ -26,18 +26,14 @@ paths: type: object properties: user: - type: object - properties: - $ref: '../objects/entities/User.yaml#/components/schemas/user' + $ref: '../objects/entities/User.yaml#/components/schemas/user' '401': description: Unauthorized - Invalid username or password. content: - application/json: + text/html: schema: - type: object - properties: - message: - type: string + type: string + example: Unauthorized /logout: post: summary: Logout from the server @@ -61,13 +57,11 @@ paths: properties: message: type: string - example: Successfully logged out. + example: Success '401': description: Unauthorized content: - application/json: + text/html: schema: - type: object - properties: - message: - type: string + type: string + example: Unauthorized diff --git a/docs/openapi.json b/docs/openapi.json index 9767f5796..5a2f61347 100644 Binary files a/docs/openapi.json and b/docs/openapi.json differ diff --git a/docs/root.yaml b/docs/root.yaml index 4d6c055db..395923641 100644 --- a/docs/root.yaml +++ b/docs/root.yaml @@ -77,6 +77,10 @@ paths: $ref: './controllers/PodcastController.yaml#/paths/~1api~1podcasts~1{id}~1episode~1{episodeId}' /api/series/{id}: $ref: './controllers/SeriesController.yaml#/paths/~1api~1series~1{id}' + /login: + $ref: './controllers/AuthController.yaml#/paths/~1login' + /logout: + $ref: './controllers/AuthController.yaml#/paths/~1logout' tags: - name: Authors description: Author endpoints