adding global params to pins endpoint, customized names

This commit is contained in:
Luke Hagar
2024-09-18 02:58:50 +00:00
parent 879ce30408
commit 979bb59d24
6 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
name: X-Plex-Device
x-speakeasy-name-override: DeviceName
in: query
required: false
schema:

View File

@@ -1,4 +1,5 @@
name: X-Plex-Client-Identifier
x-speakeasy-name-override: ClientID
description: |
The unique identifier for the client application
This is used to track the client application and its usage

View File

@@ -1,4 +1,5 @@
name: X-Plex-Product
x-speakeasy-name-override: ClientName
in: query
required: false
schema:

View File

@@ -1,4 +1,5 @@
name: X-Plex-Version
x-speakeasy-name-override: ClientVersion
in: query
required: false
schema:

View File

@@ -5,7 +5,7 @@ post:
- Plex
summary: Get a Pin
operationId: getPin
description: Retrieve a Pin from Plex.tv for authentication flows
description: Retrieve a Pin ID from Plex.tv to use for authentication flows
security: [] # No security required
parameters:
- name: strong
@@ -20,6 +20,9 @@ post:
required: false
- $ref: ../../parameters/plex/x-plex-identifier.yaml
- $ref: ../../parameters/plex/x-plex-product.yaml
- $ref: ../../parameters/plex/x-plex-device.yaml
- $ref: ../../parameters/plex/x-plex-version.yaml
- $ref: ../../parameters/plex/x-plex-platform.yaml
responses:
"200":
description: Requests a new pin id used in the authentication flow

View File

@@ -31,6 +31,10 @@ servers:
x-speakeasy-globals:
parameters:
- $ref: "./parameters/plex/x-plex-identifier.yaml"
- $ref: "./parameters/plex/x-plex-product.yaml"
- $ref: "./parameters/plex/x-plex-device.yaml"
- $ref: "./parameters/plex/x-plex-version.yaml"
- $ref: "./parameters/plex/x-plex-platform.yaml"
security:
- accessToken: []