Added test for server resources endpoint (#50)

This commit is contained in:
Jason Landbridge
2024-09-05 13:08:20 +02:00
committed by GitHub
parent 9fc0a64b86
commit 00133d5f41
11 changed files with 441 additions and 35 deletions

View File

@@ -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"

View File

@@ -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