Fixed wrong formation and added endpoints to root

This commit is contained in:
Vito0912 2024-07-27 21:20:15 +02:00
parent 15136e2562
commit 9efd3537a4
3 changed files with 12 additions and 14 deletions

View file

@ -26,18 +26,14 @@ paths:
type: object type: object
properties: properties:
user: user:
type: object $ref: '../objects/entities/User.yaml#/components/schemas/user'
properties:
$ref: '../objects/entities/User.yaml#/components/schemas/user'
'401': '401':
description: Unauthorized - Invalid username or password. description: Unauthorized - Invalid username or password.
content: content:
application/json: text/html:
schema: schema:
type: object type: string
properties: example: Unauthorized
message:
type: string
/logout: /logout:
post: post:
summary: Logout from the server summary: Logout from the server
@ -61,13 +57,11 @@ paths:
properties: properties:
message: message:
type: string type: string
example: Successfully logged out. example: Success
'401': '401':
description: Unauthorized description: Unauthorized
content: content:
application/json: text/html:
schema: schema:
type: object type: string
properties: example: Unauthorized
message:
type: string

Binary file not shown.

View file

@ -77,6 +77,10 @@ paths:
$ref: './controllers/PodcastController.yaml#/paths/~1api~1podcasts~1{id}~1episode~1{episodeId}' $ref: './controllers/PodcastController.yaml#/paths/~1api~1podcasts~1{id}~1episode~1{episodeId}'
/api/series/{id}: /api/series/{id}:
$ref: './controllers/SeriesController.yaml#/paths/~1api~1series~1{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: tags:
- name: Authors - name: Authors
description: Author endpoints description: Author endpoints