Skip to content

Commit 69d2f41

Browse files
authored
Merge pull request #565 from HRAshton/dev0413
Fix documentation of watch_promos and pagination_plus
2 parents f9d6f87 + d408949 commit 69d2f41

File tree

3 files changed

+37
-55
lines changed

3 files changed

+37
-55
lines changed

app/Http/Controllers/V4DB/WatchController.php

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -144,39 +144,26 @@ public function popularEpisodes(QueryPopularEpisodesCommand $command)
144144
* allOf={
145145
* @OA\Schema(ref="#/components/schemas/pagination"),
146146
* @OA\Schema(
147-
*
148-
* allOf={
149-
* @OA\Schema(
147+
* @OA\Property(
148+
* property="data",
149+
* type="array",
150+
* @OA\Items(
151+
* type="object",
150152
* @OA\Property(
151153
* property="title",
152154
* type="string",
153155
* description="Promo Title"
154156
* ),
155-
* ),
156-
* @OA\Schema (
157157
* @OA\Property(
158-
* property="data",
159-
* type="array",
160-
*
161-
* @OA\Items(
162-
* type="object",
163-
* @OA\Property(
164-
* property="entry",
165-
* type="object",
166-
* ref="#/components/schemas/anime_meta"
167-
* ),
168-
* @OA\Property(
169-
* property="trailer",
170-
* type="array",
171-
* @OA\Items(
172-
* type="object",
173-
* ref="#/components/schemas/trailer",
174-
* ),
175-
* ),
176-
* ),
158+
* property="entry",
159+
* ref="#/components/schemas/anime_meta"
160+
* ),
161+
* @OA\Property(
162+
* property="trailer",
163+
* ref="#/components/schemas/trailer",
177164
* ),
178165
* ),
179-
* },
166+
* ),
180167
* ),
181168
* },
182169
* ),

app/Http/Resources/V4/CommonResource.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ class CommonResource extends JsonResource
326326
* property="has_next_page",
327327
* type="boolean"
328328
* ),
329+
* @OA\Property(
330+
* property="current_page",
331+
* type="integer"
332+
* ),
329333
*
330334
* @OA\Property (
331335
* property="items",

storage/api-docs/api-docs.json

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4913,39 +4913,27 @@
49134913
"$ref": "#/components/schemas/pagination"
49144914
},
49154915
{
4916-
"allOf": [
4917-
{
4918-
"properties": {
4919-
"title": {
4920-
"description": "Promo Title",
4921-
"type": "string"
4922-
}
4923-
},
4924-
"type": "object"
4925-
},
4926-
{
4927-
"properties": {
4928-
"data": {
4929-
"type": "array",
4930-
"items": {
4931-
"properties": {
4932-
"entry": {
4933-
"$ref": "#/components/schemas/anime_meta"
4934-
},
4935-
"trailer": {
4936-
"type": "array",
4937-
"items": {
4938-
"$ref": "#/components/schemas/trailer"
4939-
}
4940-
}
4941-
},
4942-
"type": "object"
4916+
"type": "object",
4917+
"properties": {
4918+
"data": {
4919+
"type": "array",
4920+
"items": {
4921+
"type": "object",
4922+
"properties": {
4923+
"title": {
4924+
"description": "Promo Title",
4925+
"type": "string"
4926+
},
4927+
"entry": {
4928+
"$ref": "#/components/schemas/anime_meta"
4929+
},
4930+
"trailer": {
4931+
"$ref": "#/components/schemas/trailer"
49434932
}
49444933
}
4945-
},
4946-
"type": "object"
4934+
}
49474935
}
4948-
]
4936+
}
49494937
}
49504938
]
49514939
},
@@ -6417,6 +6405,9 @@
64176405
"has_next_page": {
64186406
"type": "boolean"
64196407
},
6408+
"current_page": {
6409+
"type": "integer"
6410+
},
64206411
"items": {
64216412
"properties": {
64226413
"count": {

0 commit comments

Comments
 (0)