mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 12:37:44 +00:00
added accept header
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user