[]
        
(Showing Draft Content)

Group

Group

[GET] /api/v1/groups

Get all groups.

Responses

[200] Success

[POST] /api/v1/groups

Add a new group.

Request Body

Type: application/json-patch+json, application/json, text/json, application/*+json

AddGroupBizModel

Responses

[200] Success

[GET] /api/v1/groups/tree

Get the group tree.

Responses

[200] Success

[GET] /api/v1/groups/{id}

Parameters

Name In Type
idRequired path string

Get specified group's information.

Responses

[200] Success

[DELETE] /api/v1/groups/{id}

Parameters

Name In Type
idRequired path string

Delete the specified group.

Responses

[200] Success

[POST] /api/v1/groups/{id}/rename

Parameters

Name In Type
idRequired path string

Rename the specified group.

Request Body

Type: application/json-patch+json, application/json, text/json, application/*+json

RenameGroupBizModel

Responses

[200] Success

[POST] /api/v1/groups/{id}/move

Parameters

Name In Type
idRequired path string

Move the specified group.

Request Body

Type: application/json-patch+json, application/json, text/json, application/*+json

SetParentGroupBizModel

Responses

[200] Success

[GET] /api/v1/groups/{id}/users

Parameters

Name In Type
idRequired path string

Get the users who belongs to the specified group.

Responses

[200] Success

[POST] /api/v1/groups/{id}/users

Parameters

Name In Type
idRequired path string

Add users to specified group.

Request Body

Type: application/json-patch+json, application/json, text/json, application/*+json

OperateGroupUsersBizModel

Responses

[200] Success

[PUT] /api/v1/groups/{id}/users

Parameters

Name In Type
idRequired path string

Update the users who belongs to the specified group.

Request Body

Type: application/json-patch+json, application/json, text/json, application/*+json

OperateGroupUsersBizModel

Responses

[200] Success

[DELETE] /api/v1/groups/{id}/users/{userId}

Parameters

Name In Type
idRequired path string
userIdRequired path string

Remove the user from specified group.

Responses

[200] Success

[GET] /api/v1/groups/{userId}/paths

Parameters

Name In Type
userIdRequired path string

Get all the groups' paths which the specified user belongs to.

Responses

[200] Success

Models

Ƭ AddGroupBizModel

Name Type
nameNullable string
parentGroupIdNullable string

Ƭ RenameGroupBizModel

Name Type
newNameNullable string

Ƭ SetParentGroupBizModel

Name Type
parentGroupIdNullable string

Ƭ OperateGroupUsersBizModel

Name Type
userIdsNullable Array<string>