| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #%RAML 1.0
- /{userId}:
- uriParameters:
- userId:
- type: integer
- description: 用户id
- get:
- displayName: 获取用户信息
- is: [response: { typeName: User }]
- post:
- displayName: 更新用户信息
- body:
- application/json:
- properties:
- bio?: string
- nickname?: string
- is: [response: { typeName: User }]
- /password:
- post:
- displayName: 修改密码
- body:
- application/json:
- properties:
- oldPassword: string
- newPassword: string
- is: [response: { typeName: User }]
- /user:
- post:
- displayName: 管理员创建账号
- body:
- application/json:
- type: UserDTO
- is: [response: {typeName: User }]
- get:
- displayName: 管理员搜索用户列表
- is: [pagable, response: { typeName: PageUser }]
- queryParameters:
- search:
- type: string
- description: 搜索字符串
- /{userId}:
- uriParameters:
- userId:
- type: integer
- description: 用户id
- get:
- displayName: 管理员获取单个用户
- is: [response: { typeName: User }]
- delete:
- displayName: 管理员删除单个用户
- is: [empty_response]
- /current:
- displayName: 获取当前用户的信息
- is: [response: { typeName: User }]
-
|