Get All Virtual Service Templates

To get all Virtual Service templates, 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 templates by workspaceId.

 

Minimum Parameters for getting all Virtual Service templates

The following parameters are the base parameters required to get all Virtual Service templates.

Get All Mock TemplatesMinimum Configuration Sample


curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mock-templates?serviceId=123' \
    -X GET  \
    -H 'accept: */*'

Get All Virtual Service Templates Request Attributes

Attributes

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": [
    {
      "created": "2019-07-25T13:25:10.347Z",
      "createdBy": "string",
      "description": "string",
      "id": 0,
      "liveSystemHost": "string",
      "liveSystemPort": 0,
      "name": "string",
      "noMatchingRequestPreference": "string",
      "noMatchingRequestTxnId": 0,
      "serviceId": 0,
      "serviceName": "string",
      "thinkTime": 0,
      "mockServiceTransactions": [
        0
      ],
      "updated": "2019-07-25T13:25:10.347Z",
      "updatedBy": "string"
    }
  ],
  "skip": 0,
  "total": 0
}