feat /users path is specified
This commit is contained in:
parent
40e341c05a
commit
fe18c0d865
4 changed files with 226 additions and 0 deletions
|
|
@ -122,6 +122,53 @@ paths:
|
|||
description: Unknown server error
|
||||
security:
|
||||
- JwtAuthCookies: []
|
||||
/users/:
|
||||
get:
|
||||
summary: 'Search user by nickname or dispname (both in one param), response is always sorted by id'
|
||||
parameters:
|
||||
- name: word
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: limit
|
||||
in: query
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: 10
|
||||
- name: cursor_id
|
||||
in: query
|
||||
description: pass cursor naked
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: 1
|
||||
responses:
|
||||
'200':
|
||||
description: List of users with cursor
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
description: List of users
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
cursor:
|
||||
type: integer
|
||||
format: int64
|
||||
default: 1
|
||||
required:
|
||||
- data
|
||||
- cursor
|
||||
'204':
|
||||
description: No users found
|
||||
'400':
|
||||
description: Request params are not correct
|
||||
'500':
|
||||
description: Unknown server error
|
||||
'/users/{user_id}':
|
||||
get:
|
||||
operationId: getUsersId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue