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 integer

    The identifier of the Service Mock whose Transaction you want to get

  • serviceId integer

    required

    The identifier of the Service whose Transaction you want to get

  • workspaceId integer

    required

    The Workspace identifier

  • filter string

    Text by which you want to filter the query result

  • limit integer

    Number of results per page

  • query string

    Name of the Transaction to get

  • skip integer

    Number of initial results to skip

  • sort string

    The column name by which you want to sort the result: id, name, or description

  • tags string

    Tags by which you want to filter the result

  • type string

    Transaction 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
}