mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 20:47:48 +00:00
Added test for server resources endpoint (#50)
This commit is contained in:
@@ -2,8 +2,9 @@ get:
|
||||
tags:
|
||||
- Server
|
||||
summary: Get Server Identity
|
||||
description: Get Server Identity
|
||||
operationId: getServerIdentity
|
||||
description: This request is useful to determine if the server is online or offline
|
||||
operationId: get-server-identity
|
||||
security: []
|
||||
responses:
|
||||
"200":
|
||||
description: The Server Identity information
|
||||
@@ -26,7 +27,5 @@ get:
|
||||
version:
|
||||
type: string
|
||||
example: 1.31.3.6868-28fc46b27
|
||||
"400":
|
||||
$ref: "../responses/400.yaml"
|
||||
"401":
|
||||
$ref: "../responses/401.yaml"
|
||||
"408":
|
||||
$ref: "../../responses/408.yaml"
|
||||
@@ -1,38 +1,32 @@
|
||||
get:
|
||||
servers:
|
||||
- url: "https://plex.tv/api/v2"
|
||||
security: []
|
||||
tags:
|
||||
- Plex
|
||||
summary: Get Resources
|
||||
description: Get Resources
|
||||
operationId: getResources
|
||||
summary: Get Server Resources
|
||||
description: Get Plex server access tokens and server connections
|
||||
operationId: get-server-resources
|
||||
parameters:
|
||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||
- $ref: "../../parameters/plex/x-plex-token.yaml"
|
||||
- name: includeHttps
|
||||
in: query
|
||||
description: Include Https entries in the results
|
||||
schema:
|
||||
type: integer
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
$ref: "../../models/common/PlexBoolean.yaml"
|
||||
- name: includeRelay
|
||||
in: query
|
||||
description: Include Relay addresses in the results
|
||||
description: |
|
||||
Include Relay addresses in the results
|
||||
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
|
||||
schema:
|
||||
type: integer
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
$ref: "../../models/common/PlexBoolean.yaml"
|
||||
- name: includeIPv6
|
||||
in: query
|
||||
description: Include IPv6 entries in the results
|
||||
schema:
|
||||
type: integer
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
$ref: "../../models/common/PlexBoolean.yaml"
|
||||
- $ref: "../../parameters/accept-application-json.yaml"
|
||||
responses:
|
||||
"200":
|
||||
description: List of Plex Devices. This includes Plex hosted servers and clients
|
||||
Reference in New Issue
Block a user