mirror of
https://github.com/LukeHagar/plex-docs.git
synced 2025-12-06 12:37:45 +00:00
Updating OpenAPI Spec
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
openapi: 3.1.1
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: Plex-API
|
||||
summary: A Plex Media Server API Map
|
||||
description: An Open API Spec for interacting with Plex.tv and Plex Servers
|
||||
version: 0.0.2
|
||||
version: 0.0.3
|
||||
contact:
|
||||
name: Luke Hagar
|
||||
email: Lukeslakemail@gmail.com
|
||||
url: https://www.LukeHagar.com
|
||||
url: 'https://www.LukeHagar.com'
|
||||
servers:
|
||||
- url: '{Protocol}://{Local IP}:{Port}'
|
||||
variables:
|
||||
@@ -16,7 +16,7 @@ servers:
|
||||
- http
|
||||
- https
|
||||
default: http
|
||||
description: The protocl to use with your plex server
|
||||
description: The protocol to use with your plex server
|
||||
Local IP:
|
||||
default: 10.10.10.47
|
||||
description: The Local IP Address of your plex server
|
||||
@@ -31,10 +31,22 @@ components:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: X-Plex-Token
|
||||
schemas:
|
||||
ServerCapabilities:
|
||||
paths:
|
||||
/:
|
||||
get:
|
||||
tags:
|
||||
- Server
|
||||
summary: Server Capabilities
|
||||
description: Server Capabilities
|
||||
operationId: serverCapabilities
|
||||
responses:
|
||||
'200':
|
||||
description: The Server Capabilities
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties: &ref_0
|
||||
properties:
|
||||
MediaContainer:
|
||||
type: object
|
||||
properties:
|
||||
@@ -149,9 +161,23 @@ components:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
ServerActivities:
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/activities:
|
||||
get:
|
||||
tags:
|
||||
- Activities
|
||||
summary: Server Activities
|
||||
description: Server Activities
|
||||
operationId: serverActivities
|
||||
responses:
|
||||
'200':
|
||||
description: The Server Activities
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties: &ref_1
|
||||
properties:
|
||||
MediaContainer:
|
||||
type: object
|
||||
properties:
|
||||
@@ -181,45 +207,9 @@ components:
|
||||
properties:
|
||||
librarySectionID:
|
||||
type: string
|
||||
responses:
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
paths:
|
||||
/:
|
||||
get:
|
||||
tags:
|
||||
- Server
|
||||
summary: Server Capabilities
|
||||
description: Server Capabilities
|
||||
operationId: serverCapabilities
|
||||
responses:
|
||||
'200':
|
||||
description: The Server Capabilities
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties: *ref_0
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/activities:
|
||||
get:
|
||||
tags:
|
||||
- Activities
|
||||
summary: Server Activities
|
||||
description: Server Activities
|
||||
operationId: serverActivities
|
||||
responses:
|
||||
'200':
|
||||
description: The Server Activities
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties: *ref_1
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/activities/{activityUUID}:
|
||||
'/activities/{activityUUID}':
|
||||
delete:
|
||||
tags:
|
||||
- Activities
|
||||
@@ -237,11 +227,6 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: The Server Activity was canceled
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties: *ref_1
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/updater/status:
|
||||
@@ -341,7 +326,7 @@ paths:
|
||||
description: All tasks were stopped
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/butler/{taskName}:
|
||||
'/butler/{taskName}':
|
||||
post:
|
||||
tags:
|
||||
- Butler
|
||||
@@ -537,15 +522,15 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
example:
|
||||
- server://client-identifier
|
||||
- provider://provider-identifier
|
||||
- 'server://client-identifier'
|
||||
- 'provider://provider-identifier'
|
||||
required: true
|
||||
responses:
|
||||
'200':
|
||||
description: Source Connection Information
|
||||
'401':
|
||||
description: Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
/library/sections/{sectionId}/{category}:
|
||||
'/library/sections/{sectionId}/{category}':
|
||||
get:
|
||||
tags:
|
||||
- Library
|
||||
|
||||
Reference in New Issue
Block a user