mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-09 20:47:46 +00:00
Moved files into package.json project setup
This commit is contained in:
26
src/paths/authentication/resources.yaml
Normal file
26
src/paths/authentication/resources.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
get:
|
||||
tags:
|
||||
- Authentication
|
||||
summary: Get Source Connection Information
|
||||
description: |
|
||||
If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||
Note: requires Plex Media Server >= 1.15.4.
|
||||
operationId: getSourceConnectionInformation
|
||||
parameters:
|
||||
- name: source
|
||||
description: The source identifier with an included prefix.
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
examples:
|
||||
- server://client-identifier
|
||||
- provider://provider-identifier
|
||||
required: true
|
||||
|
||||
responses:
|
||||
"200":
|
||||
description: Source Connection Information
|
||||
"400":
|
||||
$ref: "../../responses/400.yaml"
|
||||
"401":
|
||||
$ref: "../../responses/401.yaml"
|
||||
32
src/paths/authentication/token.yaml
Normal file
32
src/paths/authentication/token.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
get:
|
||||
tags:
|
||||
- Authentication
|
||||
summary: Get a Transient Token.
|
||||
description: |
|
||||
This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||
operationId: getTransientToken
|
||||
parameters:
|
||||
- name: type
|
||||
description: "`delegation` - This is the only supported `type` parameter."
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- delegation
|
||||
required: true
|
||||
- name: scope
|
||||
description: "`all` - This is the only supported `scope` parameter."
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- all
|
||||
required: true
|
||||
|
||||
responses:
|
||||
"200":
|
||||
description: A Transient Token
|
||||
"400":
|
||||
$ref: "../../responses/400.yaml"
|
||||
"401":
|
||||
$ref: "../../responses/401.yaml"
|
||||
Reference in New Issue
Block a user