I am facing issue while getting the response using the Query during the mocking data with Mountebank tool:
Below is the link which I have tired:
GET:http://localhost:6173/entities/?key=first
I want to get the "second" response, but what I'm getting is: "No response".
{
"port": 6173,
"protocol": "http",
"stubs": [
{
"predicates": [
{
"equals": {
"path": "/entities",
"query": {
"key":"first"
},
"method": "GET",
"headers": {
"Content-Type": "application/json"
}
}
}
],
"responses": [
{
"is": {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": [
{
"id": "second"
}
]
}
}
]
},
{
"responses": [
{
"is": { "statusCode": 404 }
}
]
}
]
}
Actual Response: No response
expected response: second