mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
add music videos + docs
This commit is contained in:
parent
bfb3ae4f9d
commit
6f41f4e93a
@ -70,6 +70,38 @@ class AnimeVideosResource extends JsonResource
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="music_videos",
|
||||
* type="array",
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
* type="string",
|
||||
* description="Title"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="video",
|
||||
* ref="#/components/schemas/trailer"
|
||||
* ),
|
||||
* @OA\Property (
|
||||
* type="object",
|
||||
* property="meta",
|
||||
*
|
||||
* @OA\Property (
|
||||
* property="title",
|
||||
* type="string",
|
||||
* nullable=true
|
||||
* ),
|
||||
* @OA\Property (
|
||||
* property="author",
|
||||
* type="string",
|
||||
* nullable=true
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* )
|
||||
*/
|
||||
@ -77,7 +109,8 @@ class AnimeVideosResource extends JsonResource
|
||||
{
|
||||
return [
|
||||
'promo' => $this['promo'],
|
||||
'episodes' => $this['episodes']
|
||||
'episodes' => $this['episodes'],
|
||||
'music_videos' => $this['music_videos'],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5292,6 +5292,34 @@
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"music_videos": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"properties": {
|
||||
"title": {
|
||||
"description": "Title",
|
||||
"type": "string"
|
||||
},
|
||||
"video": {
|
||||
"$ref": "#/components/schemas/trailer"
|
||||
},
|
||||
"meta": {
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"author": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
Loading…
x
Reference in New Issue
Block a user