mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-09 12:37:45 +00:00
corrections (#51)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@
|
||||
.stoplight.json
|
||||
node_modules
|
||||
output
|
||||
build
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
||||
"@redocly/cli": "latest",
|
||||
"@redocly/cli": "^1.23.1",
|
||||
"@types/node": "^22.5.0",
|
||||
"chokidar-cli": "^3.0.0",
|
||||
"prettier": "3.3.3",
|
||||
|
||||
@@ -220,10 +220,7 @@ properties:
|
||||
example: 13692262
|
||||
format: int32
|
||||
joinedAt:
|
||||
type: integer
|
||||
description: Unix epoch datetime the account joined Plex
|
||||
format: int32
|
||||
example: 1721154902
|
||||
$ref: "./common/PlexDateTime.yaml"
|
||||
locale:
|
||||
type:
|
||||
- string
|
||||
@@ -254,10 +251,7 @@ properties:
|
||||
description: If the account has a Plex Home PIN enabled
|
||||
default: false
|
||||
rememberExpiresAt:
|
||||
type: integer
|
||||
description: Unix epoch datetime the authtoken expires
|
||||
format: int32
|
||||
example: 1722364046
|
||||
$ref: "./common/PlexDateTime.yaml"
|
||||
restricted:
|
||||
type: boolean
|
||||
description: If the account is a Plex Home managed user
|
||||
|
||||
@@ -2,4 +2,4 @@ type:
|
||||
- integer
|
||||
example: 1556281940
|
||||
description: Unix epoch datetime
|
||||
format: int32
|
||||
format: int64
|
||||
|
||||
@@ -4,11 +4,12 @@ post:
|
||||
security: []
|
||||
tags:
|
||||
- Authentication
|
||||
summary: Get User SignIn Data
|
||||
summary: Get User Sign In Data
|
||||
description: Sign in user with username and password and return user data with Plex authentication token
|
||||
operationId: post-users-sign-in-data
|
||||
parameters:
|
||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||
- $ref: "../../parameters/accept-application-json.yaml"
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
@@ -29,6 +30,9 @@ post:
|
||||
rememberMe:
|
||||
type: boolean
|
||||
default: false
|
||||
verificationCode:
|
||||
type: string
|
||||
example: 123456
|
||||
description: Login credentials
|
||||
responses:
|
||||
"201":
|
||||
|
||||
@@ -14,6 +14,7 @@ content:
|
||||
example: 1000
|
||||
message:
|
||||
type: string
|
||||
x-speakeasy-error-message: true
|
||||
example: X-Plex-Client-Identifier is missing
|
||||
status:
|
||||
type: integer
|
||||
|
||||
@@ -1 +1,21 @@
|
||||
description: Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
example: 1000
|
||||
message:
|
||||
type: string
|
||||
x-speakeasy-error-message: true
|
||||
example: X-Plex-Client-Identifier is missing
|
||||
status:
|
||||
type: integer
|
||||
example: 400
|
||||
|
||||
@@ -10,11 +10,12 @@ content:
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: number
|
||||
type: integer
|
||||
example: 1001
|
||||
message:
|
||||
type: string
|
||||
x-speakeasy-error-message: true
|
||||
example: User could not be authenticated
|
||||
status:
|
||||
type: number
|
||||
type: integer
|
||||
example: 401
|
||||
|
||||
@@ -9,4 +9,5 @@ content:
|
||||
example: 408
|
||||
message:
|
||||
type: string
|
||||
x-speakeasy-error-message: true
|
||||
example: The server timed out waiting for the request.
|
||||
|
||||
Reference in New Issue
Block a user