feat(api): plex Sync (Movies)

Also adds winston logging
This commit is contained in:
sct
2020-09-27 14:05:32 +00:00
parent 5a43ec5405
commit 1be8b18361
19 changed files with 656 additions and 23 deletions

View File

@@ -770,6 +770,69 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/PlexSettings'
/settings/plex/library:
get:
summary: Get a list of current plex libraries
description: Returns a list of plex libraries in a JSON array
tags:
- settings
parameters:
- in: query
name: sync
description: Syncs the current libraries with the current plex server
schema:
type: string
nullable: true
- in: query
name: enable
description: Comma separated list of libraries to enable. Any libraries not passed will be disabled!
schema:
type: string
nullable: true
responses:
'200':
description: 'Plex libraries returned'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PlexLibrary'
/settings/plex/sync:
get:
summary: Start a full Plex Library sync
description: Runs a full plex library sync and returns the progress in a JSON array
tags:
- settings
parameters:
- in: query
name: cancel
schema:
type: boolean
example: false
responses:
'200':
description: Status of Plex Sync
content:
application/json:
schema:
type: object
properties:
running:
type: boolean
example: false
progress:
type: number
example: 0
total:
type: number
example: 100
currentLibrary:
$ref: '#/components/schemas/PlexLibrary'
libraries:
type: array
items:
$ref: '#/components/schemas/PlexLibrary'
/settings/radarr:
get:
summary: Get all radarr settings