Querying Approvals
Function
Querying Approvals
URI
GET /v2/{project_id}/design/approvals
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
biz_id |
No |
Long |
Business ID |
name |
No |
String |
Fuzzy query by name or code |
create_by |
No |
String |
Creator |
approver |
No |
String |
Approver |
approval_status |
No |
String |
Approval status Enumeration values:
|
approval_status_detail |
No |
String |
Approval status details Enumeration values:
|
approval_type |
No |
String |
Approval type Enumeration values:
|
biz_type |
No |
String |
Business types |
begin_time |
No |
String |
Left boundary for a time filter. This parameter must be used together with end_time. |
end_time |
No |
String |
Right boundary for a time filter. This parameter must be used together with begin_time. |
limit |
No |
Integer |
Number of records to be queried, that is, Y records. The value ranges from 1 to 100. The default value is 50. Maximum: 100 Default: 50 |
offset |
No |
Integer |
Query offset, that is, X data records are skipped. The value must be 0 or an integer multiple of limit. If the value does not meet the requirements, it will be rounded down. The default value is 0. Default: 0 |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
Long |
ID |
tenant_id |
String |
tenant id |
name_ch |
String |
Approval name in Chinese |
name_en |
String |
Approval name in English |
biz_id |
Long |
Business ID |
biz_type |
String |
Business types Enumeration values:
|
biz_info |
String |
Business information |
biz_info_obj |
Object |
Business information object |
biz_version |
Integer |
Business version |
biz_status |
String |
Business statuses Enumeration values:
|
approval_status |
String |
Approval statuses Enumeration values:
|
approval_type |
String |
Approval types Enumeration values:
|
submit_time |
String |
Submission time |
create_by |
String |
Creator |
l1 |
String |
Subject area group |
l2 |
String |
Subject area |
l3 |
String |
Business object |
approval_time |
String |
Approval time |
approver |
String |
Approver |
|
String |
Approver email address |
msg |
String |
Approval message |
directory_path |
String |
Directory tree |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.000 which indicates that the request was successfully processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data |
Example Requests
None
Example Responses
Status code: 200
The operation succeeds. The ApprovalVO array and the total number of approvals are returned.
{ "id" : "1014218490837635072", "tenant_id" : "0cf68da0ba80f2962ff7c01ba8c0b7f7-workspace-f7eee36e67e541a59679f9b1b7f4eab0", "name_ch" : "Gender", "name_en" : "RY_000001", "biz_id" : "1012307352952635392", "biz_type" : "CODE_TABLE", "biz_info" : "", "biz_info_obj" : { "id" : "1012307352952635392", "name_en" : "RY_000001", "name_ch" : "Gender", "tb_version" : 0, "directory_id" : "1012307270173851648", "directory_path" : null, "description" : "", "create_by" : "abc", "status" : "DRAFT", "create_time" : "2022-08-25T10:28:01+08:00", "update_time" : "2022-08-25T10:31:08+08:00", "approval_info" : null, "new_biz" : null, "code_table_fields" : [ { "id" : "66929", "code_table_id" : "1012307352952635392", "ordinal" : 1, "name_en" : "code", "name_ch" : "Code", "description" : "", "data_type" : "STRING", "domain_type" : null, "data_type_extend" : null, "is_unique_key" : false, "code_table_field_values" : [ ], "count_field_values" : null }, { "id" : "66930", "code_table_id" : "1012307352952635392", "ordinal" : 2, "name_en" : "value", "name_ch" : "Value", "description" : "", "data_type" : "STRING", "domain_type" : null, "data_type_extend" : null, "is_unique_key" : false, "code_table_field_values" : [ ], "count_field_values" : null } ] }, "biz_version" : 0, "biz_status" : "PUBLISHED", "approval_status" : "WITHDREW", "approval_type" : "OFFLINE", "submit_time" : "2022-08-30T17:02:11+08:00", "create_by" : "abc", "l1" : null, "l2" : null, "l3" : null, "approval_time" : "2022-08-30T17:02:23+08:00", "approver" : "abc", "email" : null, "msg" : null, "directory_path" : null }
Status Codes
Status Code |
Description |
---|---|
200 |
The operation succeeds. The ApprovalVO array and the total number of approvals are returned. |
400 |
BadRequest |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.