feat(api): add external ids to movie/tv response

This commit is contained in:
sct
2020-09-20 14:42:13 +09:00
parent 02cbb5b030
commit 4aa74319e0
6 changed files with 90 additions and 3 deletions

View File

@@ -433,6 +433,8 @@ components:
type: array
items:
$ref: '#/components/schemas/Crew'
externalIds:
$ref: '#/components/schemas/ExternalIds'
request:
$ref: '#/components/schemas/MediaRequest'
Episode:
@@ -573,6 +575,8 @@ components:
type: array
items:
$ref: '#/components/schemas/Crew'
externalIds:
$ref: '#/components/schemas/ExternalIds'
request:
$ref: '#/components/schemas/MediaRequest'
MediaRequest:
@@ -657,6 +661,25 @@ components:
type: string
profilePath:
type: string
ExternalIds:
type: object
properties:
facebookId:
type: string
freebaseId:
type: string
freebaseMid:
type: string
imdbId:
type: string
instagramId:
type: string
tvdbId:
type: string
tvrageId:
type: string
twitterId:
type: string
securitySchemes:
cookieAuth:
@@ -1219,6 +1242,16 @@ paths:
mediaId:
type: number
example: 123
tvdbId:
type: number
example: 123
seasons:
type: array
items:
type: number
required:
- mediaType
- mediaId
responses:
'201':
description: Succesfully created the request