Configure and Deploy Virtual Services

To configure or deploy Virtual Services, you need to know your Workspace identifier. The sample code uses a workspaceId of 123456. Use the actual ID value of your Workspace.

 

Minimum Parameters for Configuring/Deploying Virtual Services

The following parameters are the base parameters required to configure/deploy Virtual Services.

Configure/deploy Virtual ServicesMinimum Configuration Sample

curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mocks/configure' \
    -X POST \
    -H 'accept: application/json;charset=UTF-8' \
    -H 'Content-Type: application/json' \
    -d '{ "dependencies": \
            { "services": \
                [ { "service": "PayPal", \
                    "mock-service": "PPRunner", \
                    "transactions": \
                        [ "getAccounts", "getBalances", "createAccount" ] \
                  }, \
                  { "service": "WesternUnion", \
                    "mock-service": "WURunner", \
                    "transaction-filter": \
                        { "tags": \
                            [ "dev", "stage" ] \
                        } \
                  }, \
                  { "service": "Facebook", \
                    "mock-service": "FBRunner", \
                    "mock-service-template": "FBRunnerTemplate" \
                  } \
                ] \
            } \
        }'

Configure/Deploy Mocks Request Attributes

Attributes

Response200 OK

{
  "apiVersion": 0,
  "error": "string",
  "limit": 0,
  "link": "string",
  "requestId": "string",
  "result": {
    "trackingId": "string",
    "trackingUrl": "string"
  },
  "skip": 0,
  "total": 0
}