Moved schemas into objects/ definitions

This commit is contained in:
Nicholas Wallace 2024-02-25 18:32:04 +00:00
parent cc37c3d41f
commit cc53f16185
30 changed files with 3380 additions and 3241 deletions

View file

@ -1,3 +1,25 @@
/**
* @openapi
* components:
* schemas:
* audioBookmark:
* type: object
* properties:
* libraryItemId:
* description: The ID of the library item the bookmark is for.
* type: string
* example: li_8gch9ve09orgn4fdz8
* title:
* description: The title of the bookmark.
* type: string
* example: the good part
* time:
* description: The time (in seconds) the bookmark is at in the book.
* type: integer
* example: 16
* createdAt:
* $ref: '#/components/schemas/createdAt'
*/
class AudioBookmark {
constructor(bookmark) {
this.libraryItemId = null