added accept header

This commit is contained in:
JasonLandbridge
2024-09-03 11:40:53 +02:00
parent bea43947d0
commit 24f9bb82df
13 changed files with 81 additions and 36 deletions

View File

@@ -0,0 +1,9 @@
name: Accept
in: header
required: false
schema:
type: string
enum:
- application/json
- application/xml
example: application/json

View File

@@ -5,5 +5,6 @@ description: |
By default this is 50
schema:
type: integer
example: 0
default: 50
example: 50
required: false

View File

@@ -5,5 +5,6 @@ description: |
By default this is 0
schema:
type: integer
example: 0
default: 0
example: 0
required: false

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