add music videos + docs

This commit is contained in:
Irfan 2022-07-27 21:32:54 +05:00
parent bfb3ae4f9d
commit 6f41f4e93a
2 changed files with 63 additions and 2 deletions

View File

@ -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'],
];
}
}
}

View File

@ -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"