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

@@ -79,27 +79,10 @@ get:
- 1
example: 1
required: false
- name: type
in: query
description: |
Filter the type of media to retrieve
1 is movie
2 is tv shows
3 is seasons
4 is episodes
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
schema:
type: integer
enum:
- 0
- 1
- 2
- 3
- 4
example: 2
required: false
- $ref: "../../../parameters/type.yaml"
- $ref: "../../../parameters/container-start.yaml"
- $ref: "../../../parameters/container-size.yaml"
- $ref: "../../../parameters/accept-application-json.yaml"
responses:
"200":
description: The contents of the library by section and tag

View File

@@ -29,17 +29,8 @@ get:
description: the Id of the library to query
schema:
type: integer
- name: type
description: Plex content type to search for
in: query
schema:
type: integer
enum:
- 1
- 2
- 3
- 4
required: true
- $ref: "../../parameters/accept-application-json.yaml"
- $ref: "../../parameters/type.yaml"
responses:
"200":
description: The contents of the library by section and type

View File

@@ -5,6 +5,10 @@ get:
description: |
This endpoint will return the recently added content.
operationId: getRecentlyAdded
parameters:
- $ref: "../../parameters/accept-application-json.yaml"
- $ref: "../../parameters/container-start.yaml"
- $ref: "../../parameters/container-size.yaml"
responses:
"200":
description: The recently added content

View File

@@ -2,10 +2,12 @@ get:
servers:
- url: 'https://plex.tv/api/v2'
tags:
- Plex
- User
summary: Get UserData By Token
description: Get the User data from the provided X-Plex-Token
operationId: getUserDetails
parameters:
- $ref: '../../parameters/plex-token.yaml'
responses:
'200':
description: Logged in user details