mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 12:37:45 +00:00
cleaning, formatting, rules
This commit is contained in:
@@ -96,6 +96,7 @@ X-Plex-Client-Identifier is typically required, as is X-Plex-Token for authentic
|
|||||||
- A property in the response is only marked as required if it is always returned, regardless of the parameters sent with the request.
|
- A property in the response is only marked as required if it is always returned, regardless of the parameters sent with the request.
|
||||||
- Although Plex.tv API uses the `X-Plex-Token` as a query parameter, this specification will always define this as a header parameter where supported since this follows industry security standards.
|
- Although Plex.tv API uses the `X-Plex-Token` as a query parameter, this specification will always define this as a header parameter where supported since this follows industry security standards.
|
||||||
- Though Plex does default return `XML` unless the `accept` header is set to `application/json`, this specification will not include the `accept` header in the endpoints. Assume it should always be included in the request.
|
- Though Plex does default return `XML` unless the `accept` header is set to `application/json`, this specification will not include the `accept` header in the endpoints. Assume it should always be included in the request.
|
||||||
|
- Parameters added to endpoints via reference should always be specified at the bottom of the paramters set, since there is a large set of common parameters that are used across all endpoints.
|
||||||
|
|
||||||
## Questions?
|
## Questions?
|
||||||
|
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ post:
|
|||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The task was started successfully
|
description: The task was started successfully
|
||||||
|
"202":
|
||||||
|
description: The task was already running.
|
||||||
"400":
|
"400":
|
||||||
$ref: "../../responses/400.yaml"
|
$ref: "../../responses/400.yaml"
|
||||||
"401":
|
"401":
|
||||||
$ref: "../../responses/401.yaml"
|
$ref: "../../responses/401.yaml"
|
||||||
"202":
|
|
||||||
description: The task was already running.
|
|
||||||
|
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ get:
|
|||||||
|
|
||||||
operationId: get-library-details
|
operationId: get-library-details
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "../../../parameters/library/section-key.yaml"
|
|
||||||
- name: includeDetails
|
- name: includeDetails
|
||||||
description: |
|
description: |
|
||||||
Whether or not to include details for a section (types, filters, and sorts).
|
Whether or not to include details for a section (types, filters, and sorts).
|
||||||
@@ -58,6 +57,7 @@ get:
|
|||||||
- 1
|
- 1
|
||||||
default: 0
|
default: 0
|
||||||
required: false
|
required: false
|
||||||
|
- $ref: "../../../parameters/library/section-key.yaml"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The details of the library
|
description: The details of the library
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ get:
|
|||||||
- `firstCharacter`: Items categorized by the first letter.
|
- `firstCharacter`: Items categorized by the first letter.
|
||||||
- `folder`: Items categorized by folder.
|
- `folder`: Items categorized by folder.
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "../../../parameters/library/section-key.yaml"
|
|
||||||
- name: tag
|
- name: tag
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
@@ -71,6 +70,7 @@ get:
|
|||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
$ref: "../../../models/common/PlexMediaType.yaml"
|
$ref: "../../../models/common/PlexMediaType.yaml"
|
||||||
|
- $ref: "../../../parameters/library/section-key.yaml"
|
||||||
- $ref: "../../../parameters/include-meta.yaml"
|
- $ref: "../../../parameters/include-meta.yaml"
|
||||||
- $ref: "../../../parameters/container-start.yaml"
|
- $ref: "../../../parameters/container-start.yaml"
|
||||||
- $ref: "../../../parameters/container-size.yaml"
|
- $ref: "../../../parameters/container-size.yaml"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ get:
|
|||||||
This endpoint Refreshes all the Metadata of the library.
|
This endpoint Refreshes all the Metadata of the library.
|
||||||
operationId: get-refresh-library-metadata
|
operationId: get-refresh-library-metadata
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "../../../../parameters/library/section-key.yaml"
|
|
||||||
- name: force
|
- name: force
|
||||||
description: Force the refresh even if the library is already being refreshed.
|
description: Force the refresh even if the library is already being refreshed.
|
||||||
in: query
|
in: query
|
||||||
@@ -17,6 +16,7 @@ get:
|
|||||||
- 0
|
- 0
|
||||||
- 1
|
- 1
|
||||||
required: false
|
required: false
|
||||||
|
- $ref: "../../../../parameters/library/section-key.yaml"
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ get:
|
|||||||
This endpoint will return the top watched content from libraries of a certain type
|
This endpoint will return the top watched content from libraries of a certain type
|
||||||
operationId: getTopWatchedContent
|
operationId: getTopWatchedContent
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: "../../parameters/type.yaml"
|
|
||||||
- name: includeGuids
|
- name: includeGuids
|
||||||
in: query
|
in: query
|
||||||
description: |
|
description: |
|
||||||
@@ -15,6 +14,7 @@ get:
|
|||||||
type: integer
|
type: integer
|
||||||
required: false
|
required: false
|
||||||
example: 1
|
example: 1
|
||||||
|
- $ref: "../../parameters/type.yaml"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The metadata of the library item.
|
description: The metadata of the library item.
|
||||||
|
|||||||
@@ -20,12 +20,9 @@ get:
|
|||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
examples:
|
examples:
|
||||||
include-stream:
|
- Stream
|
||||||
value: Stream
|
- Stream,OtherItem
|
||||||
include-stream-otheritem:
|
- Stream,OtherItem,AnotherItem
|
||||||
value: Stream,OtherItem
|
|
||||||
include-stream-otheritem-anotheritem:
|
|
||||||
value: Stream,OtherItem,AnotherItem
|
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The children of the library item.
|
description: The children of the library item.
|
||||||
@@ -179,7 +176,7 @@ get:
|
|||||||
example:
|
example:
|
||||||
Based on"Bad Luck and Trouble," when members of Reacher's old military
|
Based on"Bad Luck and Trouble," when members of Reacher's old military
|
||||||
unit start turning up dead, Reacher has just one thing on his
|
unit start turning up dead, Reacher has just one thing on his
|
||||||
mind—revenge.
|
mind-revenge.
|
||||||
index:
|
index:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
|||||||
Reference in New Issue
Block a user