Forum Discussion
JHunt
6 years agoCommunity Hero
Create a MockAction for GET with the resource path set to /customers. For Dispatch type, choose "Script". The script will look something like this:
String defaultCustomer= mockOperation.mockService.getPropertyValue('Customer_ID_Default')
if (mockRequest.path == "/customers/${defaultCustomer}") { return "Response 1" // return the name of the mock response to send
}
Related Content
- 8 years ago
- 9 years ago
Recent Discussions
- 15 years ago