mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +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
|
||||
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
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue