mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 20:31:36 +00:00
Initial library schema
This commit is contained in:
parent
76100b680e
commit
5fdfc9e454
3 changed files with 92 additions and 9 deletions
|
|
@ -7,15 +7,16 @@ servers:
|
|||
- url: http://localhost:3000
|
||||
description: Development server
|
||||
components:
|
||||
securitySchemes:
|
||||
BearerAuth:
|
||||
type: http
|
||||
scheme: bearer
|
||||
responses:
|
||||
ok200:
|
||||
description: OK
|
||||
securitySchemes:
|
||||
BearerAuth:
|
||||
description: Bearer authentication
|
||||
type: http
|
||||
scheme: bearer
|
||||
responses:
|
||||
ok200:
|
||||
description: OK
|
||||
security:
|
||||
- BearerAuth: []
|
||||
- BearerAuth: []
|
||||
paths:
|
||||
/api/authors/{id}:
|
||||
get:
|
||||
|
|
@ -152,6 +153,23 @@ paths:
|
|||
- $ref: './controllers/AuthorController.yaml#/components/schemas/authorUpdated'
|
||||
404:
|
||||
$ref: './controllers/AuthorController.yaml#/components/responses/author404'
|
||||
/api/libraries:
|
||||
get:
|
||||
operationId: getLibraries
|
||||
summary: Get all libraries on server
|
||||
tags:
|
||||
- Libraries
|
||||
responses:
|
||||
200:
|
||||
description: getLibraries OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: './objects/Library.yaml#/components/schemas/library'
|
||||
tags:
|
||||
- name: Authors
|
||||
description: Author endpoints
|
||||
- name: Libraries
|
||||
description: Library endpoints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue