Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PHP
laravel-request
Commits
435f2d06
Commit
435f2d06
authored
4 years ago
by
康帅杰
Browse files
Options
Download
Email Patches
Plain Diff
添加resource层swagger中的pagination说明
parent
15677e2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-0
README.md
with
18 additions
and
0 deletions
+18
-0
README.md
View file @
435f2d06
...
...
@@ -77,7 +77,25 @@ class RequestName{
],$this->pageAttributes())
}
}
```
### 1.3 resource定义携带pagination的返回
```
/**
* @OA\Schema(
* schema="manageAccountListResponse",
* type="object",
* allOf={
* @OA\Schema(ref="#/components/schemas/Pagination"),
* @OA\Schema(
* @OA\Property(
* property="data",type="array",
* @OA\Items(ref="#/components/schemas/OtherDataResource")
* ),
* )
* }
* )
*/
```
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help