Get virtual service template
To get a virtual service template, you need to know your workspace identifier and the virtual service template identifier. The sample code uses a serviceMockTemplateId of 8 and a workspaceId of 123456. Use the actual ID values of your workspace and virtual service template.
Minimum parameters for getting a virtual service template
The following parameters are the base parameters required to get a virtual service template.
Get a virtual service templateMinimum configuration sample
curl 'https://mock.blazemeter.com/api/v1/workspaces/123456/service-mock-templates/8' \
-X GET \
-H 'accept: */*'
Get a virtual service template request attributes
Attributes
-
serviceMockIdintegerrequired
The virtual service identifier
-
workspaceIdintegerrequired
The workspace identifier
Response200 OK
{
"apiVersion": 0,
"error": "string",
"limit": 0,
"link": "string",
"requestId": "string",
"result": {
"created": "2019-07-25T13:36:44.158Z",
"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:36:44.158Z",
"updatedBy": "string"
},
"skip": 0,
"total": 0
}