Initial library schema

This commit is contained in:
Nicholas Wallace 2024-05-06 02:35:15 +00:00
parent 76100b680e
commit 5fdfc9e454
3 changed files with 92 additions and 9 deletions

View file

@ -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