-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added batch query display_name by bk_username (#2026)
- Loading branch information
Showing
10 changed files
with
276 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/bk-user/support-files/apidocs/en/batch_query_user_display_name.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
### Description | ||
|
||
Batch query user's display_name | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
|--------------|--------|----------|-----------------------------------------------------------------------------------------------| | ||
| bk_usernames | string | Yes | Blueking unique identifier, multiple identifiers are separated by commas, and the limit is 50 | | ||
|
||
### Request Example | ||
|
||
``` | ||
// URL Query Parameters | ||
bk_usernames=7idwx3b7nzk6xigs,0wngfim3uzhadh1w | ||
``` | ||
|
||
### Response Example for Status Code 200 | ||
|
||
```json5 | ||
{ | ||
"data": [ | ||
{ | ||
"bk_username": "7idwx3b7nzk6xigs", | ||
"display_name": "张三", | ||
}, | ||
{ | ||
"bk_username": "0wngfim3uzhadh1w", | ||
"display_name": "李四", | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Response Parameters Description | ||
|
||
| Name | Type | Description | | ||
|--------------|--------|----------------------------| | ||
| bk_username | string | Blueking unique identifier | | ||
| display_name | string | User's display_name | | ||
|
||
# Response Example for Non-200 Status Code | ||
|
||
```json5 | ||
// status_code = 400 | ||
{ | ||
"error": { | ||
"code": "INVALID_ARGUMENT", | ||
"message": "Arguments Validation Failed: bk_usernames: This field cannot be empty." | ||
} | ||
} | ||
``` | ||
|
||
```json5 | ||
// status_code = 400 | ||
{ | ||
"error": { | ||
"code": "INVALID_ARGUMENT", | ||
"message": "Arguments Validation Failed: bk_usernames: This field must contain at most 50 objects." | ||
} | ||
} | ||
``` |
62 changes: 62 additions & 0 deletions
62
src/bk-user/support-files/apidocs/zh/batch_query_user_display_name.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
### 描述 | ||
|
||
批量查询用户展示名 | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|--------------|--------|----|-------------------------| | ||
| bk_usernames | string | 是 | 蓝鲸唯一标识,多个以逗号分隔,限制数量为 50 | | ||
|
||
### 请求示例 | ||
|
||
``` | ||
// URL Query 参数 | ||
bk_usernames=7idwx3b7nzk6xigs,0wngfim3uzhadh1w | ||
``` | ||
|
||
### 状态码 200 的响应示例 | ||
|
||
```json5 | ||
{ | ||
"data": [ | ||
{ | ||
"bk_username": "7idwx3b7nzk6xigs", | ||
"display_name": "张三", | ||
}, | ||
{ | ||
"bk_username": "0wngfim3uzhadh1w", | ||
"display_name": "李四", | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|--------------|--------|--------| | ||
| bk_username | string | 蓝鲸唯一标识 | | ||
| display_name | string | 用户展示名 | | ||
|
||
### 状态码非 200 的响应示例 | ||
|
||
```json5 | ||
// status_code = 400 | ||
{ | ||
"error": { | ||
"code": "INVALID_ARGUMENT", | ||
"message": "参数校验不通过: bk_usernames: 该字段不能为空。" | ||
} | ||
} | ||
``` | ||
|
||
```json5 | ||
// status_code = 400 | ||
{ | ||
"error": { | ||
"code": "INVALID_ARGUMENT", | ||
"message": "参数校验不通过: bk_usernames: 至多包含 50 个对象。" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters