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
-
serviceMockId
integerThe identifier of the Service Mock whose Transaction you want to get
-
serviceId
integerrequired
The identifier of the Service whose Transaction you want to get
-
workspaceId
integerrequired
The Workspace identifier
-
filter
stringText by which you want to filter the query result
-
limit
integerNumber of results per page
-
query
stringName of the Transaction to get
-
skip
integerNumber of initial results to skip
-
sort
stringThe column name by which you want to sort the result:
id
,name
, ordescription
-
tags
stringTags by which you want to filter the result
-
type
stringTransaction 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
}