Get All Transactions
To get all Transactions within a Service, you need to know your Workspace identifier and the Service identifier. The sample code uses a serviceId of 123 and a workspaceId of 123456. Use the actual ID values of your Workspace and Service.
You can filter Transactions by a (sub)string, Transaction name, Virtual Service identifier, workspaceId, custom Tags, or Transaction type (dsl).
Minimum Parameters for getting all Transactions
The following parameters are the base parameters required to get all Transactions.
Get All TransactionsMinimum Configuration Sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/transactions?serviceId=123' \
-X GET \
-H 'accept: */*'
Get All Transactions Request Attributes
Attributes
-
serviceMockIdintegerThe identifier of the Service Mock whose Transaction you want to get
-
serviceIdintegerrequired
The identifier of the Service whose Transaction you want to get
-
workspaceIdintegerrequired
The Workspace identifier
-
filterstringText by which you want to filter the query result
-
limitintegerNumber of results per page
-
querystringName of the Transaction to get
-
skipintegerNumber of initial results to skip
-
sortstringThe column name by which you want to sort the result:
id,name, ordescription -
tagsstringTags by which you want to filter the result
-
typestringTransaction type (dsl) by which you want to filter the result
Response200 OK
{
"apiVersion": 0,
"error": "string",
"limit": 0,
"link": "string",
"requestId": "string",
"result": [
{
"description": "string",
"dsl": {
"priority": 1,
"requestDsl": {
"method": "GET",
"host": "http://miurl.com.ec",
"path": "",
"url": {
"key": "url",
"matcherName": "equals_url",
"matchingValue": "miurl.com.ec"
},
"headers": [],
"queryParams": [],
"cookies": [],
"credentials": {},
"body": []
},
"responseDsl": {
"status": 200,
"statusMessage": "OK",
"proxyUrl": "",
"headers": [],
"binary": false,
"contentType": "json",
"content": "",
"charset": "UTF-8"
}
} ,
"id": 0,
"link": "string",
"name": "string",
"serviceId": 123,
"serviceName": "string",
"tags": [
"string"
]
}
],
"skip": 0,
"total": 0
}