docs: update watch

This commit is contained in:
Irfan 2021-11-03 18:12:21 +05:00
parent ca8d9d2001
commit 2142806c7c
2 changed files with 58 additions and 49 deletions

View File

@ -194,34 +194,39 @@ class WatchController extends Controller
* allOf={
* @OA\Schema(ref="#/components/schemas/pagination"),
* @OA\Schema(
* @OA\Property(
* property="title",
* type="string",
* description="Promo Title"
* ),
* ),
* @OA\Schema(
* @OA\Property(
* property="data",
* type="array",
* @OA\Items(
* type="object",
*
* @OA\Property(
* property="entry",
* type="object",
* ref="#/components/schemas/anime meta"
* ),
* allOf={
* @OA\Schema(
* @OA\Property(
* property="trailer",
* type="array",
* @OA\Items(
* property="title",
* type="string",
* description="Promo Title"
* ),
* ),
* @OA\Schema (
* @OA\Property(
* property="data",
* type="array",
*
* @OA\Items(
* type="object",
* ref="#/components/schemas/trailer",
* @OA\Property(
* property="entry",
* type="object",
* ref="#/components/schemas/anime meta"
* ),
* @OA\Property(
* property="trailer",
* type="array",
* @OA\Items(
* type="object",
* ref="#/components/schemas/trailer",
* ),
* ),
* ),
* ),
* ),
* ),
* },
* ),
* },
* ),

View File

@ -3270,35 +3270,39 @@
"$ref": "#/components/schemas/pagination"
},
{
"properties": {
"title": {
"description": "Promo Title",
"type": "string"
}
},
"type": "object"
},
{
"properties": {
"data": {
"type": "array",
"items": {
"properties": {
"entry": {
"$ref": "#/components/schemas/anime meta"
},
"trailer": {
"type": "array",
"items": {
"$ref": "#/components/schemas/trailer"
}
"allOf": [
{
"properties": {
"title": {
"description": "Promo Title",
"type": "string"
}
},
"type": "object"
},
{
"properties": {
"data": {
"type": "array",
"items": {
"properties": {
"entry": {
"$ref": "#/components/schemas/anime meta"
},
"trailer": {
"type": "array",
"items": {
"$ref": "#/components/schemas/trailer"
}
}
},
"type": "object"
}
},
"type": "object"
}
}
},
"type": "object"
}
},
"type": "object"
]
}
]
},