Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/show sub original release #7955

Merged
merged 19 commits into from
Apr 19, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 68 additions & 5 deletions dredd/api-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,33 @@ paths:
400:
$ref: '#/responses/error'
x-disabled: true
/history:
get:
summary: Return history entries to a specific show
description: |
The history endpoint returns logged activities stored in the history table, like episodes snatched and downloaded. Or downloaded subtitles for an episode.
parameters:
- $ref: '#/parameters/page'
- $ref: '#/parameters/limit'
- $ref: '#/parameters/sort'
responses:
200:
$ref: '#/responses/pagination_history'
x-disabled: true
400:
$ref: '#/responses/error'
description: Invalid series id or pagination parameters
x-request:
path-params:
seriesid: asdf
x-disabled: true
404:
$ref: '#/responses/error'
description: Series not found
x-request:
path-params:
seriesid: tvdb999999999
x-disabled: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@medariox @sharkykh yes i'm disabling these.
I'm not getting it to work. If some of you want to spend time on this, feel free.

/history/{seriesid}:
get:
summary: Return history entries to a specific show
Expand All @@ -1007,18 +1034,21 @@ paths:
responses:
200:
$ref: '#/responses/pagination_history'
x-disabled: true
400:
$ref: '#/responses/error'
description: Invalid series id or pagination parameters
x-request:
query-params:
sort: abc
path-params:
seriesid: asdf
x-disabled: true
404:
$ref: '#/responses/error'
description: Series not found
x-request:
path-params:
seriesid: tvdb999999999
x-disabled: true
/history/{seriesid}/episode/{episodeid}:
get:
summary: Return history entries for a specific episode
Expand All @@ -1034,18 +1064,21 @@ paths:
type: array
items:
$ref: '#/definitions/History'
x-disabled: true
400:
$ref: '#/responses/error'
description: Invalid series id or pagination parameters
x-request:
query-params:
sort: abc
path-params:
seriesid: asdf
x-disabled: true
404:
$ref: '#/responses/error'
description: Series not found
x-request:
path-params:
seriesid: tvdb999999999
x-disabled: true

definitions:
Series:
Expand Down Expand Up @@ -2867,7 +2900,7 @@ parameters:
x-example: tvdb301824
type: string
episode-id:
name: episode-id
name: episodeid
in: path
required: true
description: The episode id to retrieve. E.g. s02e03, e34 or 2016-12-31
Expand Down Expand Up @@ -2993,6 +3026,36 @@ parameters:
- 'episode'
- 'season'
example: 'episode'
history:
in: body
name: Search Config
description: Object with required information to search for a specific show's episode(s).
schema:
type: object
required:
- showSlug
- episodes
properties:
showSlug:
description: Show slug consisting of the indexer name + indexers id
type: string
example: tvdb301824
episodes:
description: An array of searched episode objects with information on the type of search used
type: array
items:
type: string
example: ["s01e01", "s03e03"]
options:
description: Type of the manual search. 'episode' or 'season' search.
type: object
properties:
type:
type: string
enum:
- 'episode'
- 'season'
example: 'episode'
responses:
pagination:
description: Pagination response
Expand Down
Loading