mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-11 03:41:42 +00:00
Added two endpoints
This commit is contained in:
parent
b0d85a8dd9
commit
5e63efd810
3 changed files with 66 additions and 0 deletions
|
|
@ -13,3 +13,65 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: '../objects/entities/User.yaml#/components/schemas/user'
|
||||
/api/me/progress/{libraryItemId}/{episodeId}:
|
||||
parameters:
|
||||
- name: libraryItemId
|
||||
in: path
|
||||
description: The ID of the library item.
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItemId'
|
||||
- name: episodeId
|
||||
in: path
|
||||
description: The ID of the episode to get progress for.
|
||||
required: false
|
||||
schema:
|
||||
$ref: '../objects/mediaTypes/Podcast.yaml#/components/schemas/podcastId'
|
||||
get:
|
||||
operationId: getProgress
|
||||
summary: Get the user's progress for a library item.
|
||||
description: Get the user's progress for a library item.
|
||||
tags:
|
||||
- Me
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../objects/Media.yaml#/components/schemas/mediaProgress'
|
||||
'404':
|
||||
description: Not Found
|
||||
content:
|
||||
html/text:
|
||||
schema:
|
||||
type: string
|
||||
example: Not Found
|
||||
/api/me/progress/{mediaId}:
|
||||
parameters:
|
||||
- name: mediaId
|
||||
in: path
|
||||
description: The ID of the media progress.
|
||||
required: true
|
||||
schema:
|
||||
$ref: '../objects/Media.yaml#/components/schemas/mediaProgressId'
|
||||
get:
|
||||
operationId: getProgressById
|
||||
summary: Get the user's progress for a media item.
|
||||
description: Get the user's progress for a media item.
|
||||
tags:
|
||||
- Me
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../objects/Media.yaml#/components/schemas/mediaProgress'
|
||||
'404':
|
||||
description: Not Found
|
||||
content:
|
||||
html/text:
|
||||
schema:
|
||||
type: string
|
||||
example: Not Found
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -87,6 +87,10 @@ paths:
|
|||
$ref: './controllers/LibraryItemController.yaml#/paths/~1api~1items~1{id}~1play~1{episodeId}'
|
||||
/api/me:
|
||||
$ref: './controllers/MeController.yaml#/paths/~1api~1me'
|
||||
/api/me/progress/{libraryItemId}/{episodeId}:
|
||||
$ref: './controllers/MeController.yaml#/paths/~1api~1me~1progress~1{libraryItemId}~1{episodeId}'
|
||||
/api/me/progress/{mediaId}:
|
||||
$ref: './controllers/MeController.yaml#/paths/~1api~1me~1progress~1{mediaId}'
|
||||
tags:
|
||||
- name: Authors
|
||||
description: Author endpoints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue