Querying a Transaction Set
Function
This API is used to query a transaction set.
URI
GET /v1/{project_id}/all-templates/{test_suite_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Method of obtaining instructions. |
test_suite_id |
Yes |
Integer |
Test project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Query offset. |
limit |
No |
Integer |
Number of queried records. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
code |
String |
Response code. |
message |
String |
Response message. |
temps |
Array of TempDetailInfo objects |
temps |
Parameter |
Type |
Description |
---|---|---|
description |
String |
Description. |
id |
Integer |
Transaction ID. |
is_quoted |
Boolean |
Reference status |
name |
String |
Transaction name. |
temp_type |
Integer |
Transaction type (deprecated, reserved for compatibility). |
update_time |
String |
Update time. |
Status code: 501
Parameter |
Type |
Description |
---|---|---|
- |
String |
response message |
Example Requests
Querying the transaction set. The ID of the project to which the transactions belong is 1.
/v1/projectId/all-templates/1 { "code" : "SVCSTG.CPTS.0000000", "message" : "success", "temps" : [ { "description" : "", "id" : 155175, "is_quoted" : false, "name" : "test", "temp_type" : 0, "update_time" : "2023-06-16T15:49:19.128871+08:00" } ] }
Example Responses
Status code: 200
success
{ "code" : "SVCSTG.CPTS.0000000", "message" : "success", "temps" : [ { "description" : "", "id" : 114448, "is_quoted" : false, "name" : "temp1", "temp_type" : 0, "update_time" : "2022-07-20T17:49:20.984763+08:00" }, { "description" : "", "id" : 115964, "is_quoted" : false, "name" : "temp2", "temp_type" : 0, "update_time" : "2022-07-20T17:38:12.696491+08:00" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
success |
501 |
unknown error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot