added more endpoints

This commit is contained in:
Luke Hagar
2023-04-11 00:04:38 -05:00
parent 73816b6553
commit 3a908f2b15
7 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
get:
tags:
- Clients
summary: Get Available Clients
description: Get Available Clients
operationId: getAvailableClients
responses:
"200":
description: Available Clients
"401":
$ref: "../responses/401.yaml"

View File

@@ -0,0 +1,12 @@
get:
tags:
- Library
summary: Get On Deck
description: |
This endpoint will return the on deck content.
operationId: getOnDeck
responses:
"200":
description: The on deck content
"401":
$ref: "../responses/401.yaml"

View File

@@ -0,0 +1,19 @@
get:
tags:
- Library
summary: Refresh Library
description: |
This endpoint Refreshes the library.
operationId: refreshLibrary
parameters:
- name: sectionId
description: the Id of the library to refresh
in: path
schema:
type: number
required: true
responses:
"200":
description: The library is refreshing
"401":
$ref: "../responses/401.yaml"

View File

@@ -0,0 +1,11 @@
get:
tags:
- Server
summary: Get Server Preferences
description: Get Server Preferences
operationId: getServerPreferences
responses:
"200":
description: Server Preferences
"401":
$ref: "../responses/401.yaml"

View File

@@ -0,0 +1,11 @@
get:
tags:
- Sessions
summary: Get Session History
description: This will Retrieve a listing of all history views.
operationId: getSessionHistory
responses:
"200":
description: List of Plex Sessions
"401":
$ref: "../responses/401.yaml"

View File

@@ -2,7 +2,7 @@ get:
tags:
- Sessions
summary: Get Active Sessions
description: Get Active Sessions
description: This will retrieve the "Now Playing" Information of the PMS.
operationId: getSessions
responses:
"200":

View File

@@ -37,6 +37,8 @@ components:
name: X-Plex-Token # name of the header, query parameter or cookie
paths:
/clients:
$ref: "./paths/clients.yaml"
/:
$ref: "./paths/root.yaml"
/activities:
@@ -63,6 +65,8 @@ paths:
$ref: "./paths/security-resources.yaml"
/library/sections/{sectionId}/all:
$ref: "./paths/library-content-all.yaml"
/library/sections/{sectionId}/refresh:
$ref: "./paths/library-refresh.yaml"
/library/sections/{sectionId}/latest:
$ref: "./paths/library-content-latest.yaml"
/library/sections/{sectionId}/common:
@@ -73,6 +77,8 @@ paths:
$ref: "./paths/all-libraries.yaml"
/library/hashes:
$ref: "./paths/library-hashes.yaml"
/library/onDeck:
$ref: "./paths/library-ondeck.yaml"
/hubs:
$ref: "./paths/hubs.yaml"
/hubs/sections/{sectionId}:
@@ -97,6 +103,10 @@ paths:
$ref: "./paths/resources.yaml"
/status/sessions:
$ref: "./paths/sessions.yaml"
/status/sessions/history/all:
$ref: "./paths/session-history.yaml"
/:/prefs:
$ref: "./paths/server-preferences.yaml"
tags:
- name: Activities