Saves the test results of an API.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ApiId | long | Yes | The API ID. You can call the ListDataServiceApis operation to obtain the ID. | 417381955954827 |
ProjectId | long | Yes | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the workspace ID. | 10001 |
ResultSample | string | No | The sample success response of the API. This parameter is optional. | { "data": { "totalNum": 0, "pageSize": 10, "rows": [], "pageNum": 1 }, "errCode": 0, "requestId": "0bc14a561678159140664515*****", "errMsg": "success", "apiLog": null} |
FailResultSample | string | No | The sample failure response of the API. This parameter is optional. | |
AutoGenerate | boolean | No | Specifies whether to use the test results generated by the system. If you do not configure the resultSample or failResultSample parameter, the test results generated by the system are used. | false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0000-ABCD-EFG****\t",
"Data": true,
"Success": true,
"HttpStatusCode": 200
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history