Adjusting tags, added Plex.tv endpoints

This commit is contained in:
Luke Hagar
2023-04-19 09:34:53 -05:00
parent 2a4f162a1a
commit 099f51baf1
7 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
get:
tags:
- Plex.tv
summary: Get Home Data
description: Get Home Data
operationId: getHomeData
responses:
"200":
description: Home Data
content:
application/json:
schema:
type: object
properties:
id:
type: number
example: 1841489
name:
type: string
example: Blindkitty38's home
guestUserID:
type: number
example: 58815432
guestUserUUID:
type: string
example: f3df4e01bfca0787
guestEnabled:
type: boolean
subscription:
type: boolean
"401":
$ref: "../../responses/401.yaml"

View File

@@ -1,5 +1,6 @@
get:
tags:
- Plex.tv
- Authentication
summary: Get Access Token
operationId: getToken

View File

@@ -1,5 +1,6 @@
post:
tags:
- Plex.tv
- Authentication
summary: Get a Pin
operationId: getPin

View File

@@ -0,0 +1,39 @@
get:
tags:
- Plex.tv
- Privacy
summary: Get Privacy Data
description: Get Privacy Data
operationId: getPrivacyData
responses:
"200":
description: Privacy Data
content:
application/json:
schema:
type: object
properties:
optOutPlayback:
type: boolean
optOutLibraryStats:
type: boolean
domain:
type: string
example: analytics.plex.tv
baseUrl:
type: string
example: https://analytics.plex.tv
metrics:
type: array
items:
type: object
properties:
event:
type: string
example: cameraupload:batch
status:
type: string
example: identifiable
"401":
$ref: "../../responses/401.yaml"

View File

@@ -1,5 +1,6 @@
get:
tags:
- Plex.tv
- Devices
summary: Get Devices
description: Get Devices

View File

@@ -1,5 +1,6 @@
get:
tags:
- Plex.tv
- User
summary: Get Logged in User
description: Get Logged in User

View File

@@ -190,6 +190,10 @@ paths:
$ref: "./paths/pms/updater-apply.yaml"
# Plex.tv API endpoints
/home:
servers:
- url: https://plex.tv/api/v2
$ref: "./paths/plex.tv/home.yaml"
/pins:
servers:
- url: https://plex.tv/api/v2