mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-15 11:36:02 +08:00
33 lines
774 B
YAML
33 lines
774 B
YAML
get:
|
|
summary: 按指定条件列出用户
|
|
parameters:
|
|
- $ref: '../parameters/common.yaml#/offset'
|
|
- $ref: '../parameters/common.yaml#/limit'
|
|
- $ref: '../parameters/common.yaml#/scope'
|
|
- $ref: '../parameters/identity.yaml#/project_domain'
|
|
- $ref: '../parameters/user.yaml#/system'
|
|
responses:
|
|
200:
|
|
description: 用户列表信息
|
|
schema:
|
|
$ref: "../schemas/user.yaml#/UserListResponse"
|
|
tags:
|
|
- users
|
|
|
|
post:
|
|
summary: 新建一个本地用户
|
|
parameters:
|
|
- name: user
|
|
in: body
|
|
required: true
|
|
schema:
|
|
$ref: "../schemas/user.yaml#/UserCreateInput"
|
|
responses:
|
|
200:
|
|
description: 用户信息
|
|
schema:
|
|
$ref: "../schemas/user.yaml#/UserGetResponse"
|
|
tags:
|
|
- users
|
|
|