mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 04:11:43 +00:00
Fixed wrong formation and added endpoints to root
This commit is contained in:
parent
15136e2562
commit
9efd3537a4
3 changed files with 12 additions and 14 deletions
|
|
@ -26,18 +26,14 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
user:
|
user:
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
$ref: '../objects/entities/User.yaml#/components/schemas/user'
|
$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
|
|
||||||
properties:
|
|
||||||
message:
|
|
||||||
type: string
|
type: string
|
||||||
|
example: Unauthorized
|
||||||
/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
|
|
||||||
properties:
|
|
||||||
message:
|
|
||||||
type: string
|
type: string
|
||||||
|
example: Unauthorized
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue