refactor(user): refactor api
This commit is contained in:
parent
bf3233f7b8
commit
5c14d329bd
1 changed files with 15 additions and 8 deletions
|
@ -162,6 +162,18 @@ paths:
|
||||||
content: { }
|
content: { }
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
Pagination:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- page
|
||||||
|
- total
|
||||||
|
properties:
|
||||||
|
page:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
total:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
CreateUserRequest:
|
CreateUserRequest:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
@ -260,19 +272,14 @@ components:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- users
|
- users
|
||||||
- page
|
- pagination
|
||||||
- max_page
|
|
||||||
properties:
|
properties:
|
||||||
users:
|
users:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/User'
|
$ref: '#/components/schemas/User'
|
||||||
page:
|
pagination:
|
||||||
type: integer
|
$ref: '#/components/schemas/Pagination'
|
||||||
format: int32
|
|
||||||
max_page:
|
|
||||||
type: integer
|
|
||||||
format: int32
|
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
bearerAuth:
|
bearerAuth:
|
||||||
type: http
|
type: http
|
||||||
|
|
Loading…
Add table
Reference in a new issue