mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 04:20:52 +00:00
added accept header
This commit is contained in:
9
src/parameters/accept-application-json.yaml
Normal file
9
src/parameters/accept-application-json.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
name: Accept
|
||||
in: header
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- application/json
|
||||
- application/xml
|
||||
example: application/json
|
||||
@@ -5,5 +5,6 @@ description: |
|
||||
By default this is 50
|
||||
schema:
|
||||
type: integer
|
||||
example: 0
|
||||
default: 50
|
||||
example: 50
|
||||
required: false
|
||||
|
||||
@@ -5,5 +5,6 @@ description: |
|
||||
By default this is 0
|
||||
schema:
|
||||
type: integer
|
||||
example: 0
|
||||
default: 0
|
||||
example: 0
|
||||
required: false
|
||||
|
||||
7
src/parameters/plex-token.yaml
Normal file
7
src/parameters/plex-token.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
name: X-Plex-Token
|
||||
in: query
|
||||
description: Plex Authentication Token
|
||||
schema:
|
||||
type: string
|
||||
example: CV5xoxjTpFKUzBTShsaf
|
||||
required: true
|
||||
21
src/parameters/type.yaml
Normal file
21
src/parameters/type.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
#name: type
|
||||
#in: query
|
||||
#description: |
|
||||
# Filter the type of media to retrieve
|
||||
#required: false
|
||||
#schema:
|
||||
# $ref: '../models/common/PlexMediaType.yaml'
|
||||
#
|
||||
#
|
||||
name: type
|
||||
in: query
|
||||
description: Plex content type to search for
|
||||
schema:
|
||||
type: integer
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
example: 2
|
||||
required: true
|
||||
Reference in New Issue
Block a user