Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (38 sloc) 716 Bytes
{
"port": 7777,
"protocol": "http",
"stubs": [
{
"predicates": [
{
"equals": {
"method": "GET",
"path": "/users/1"
}
}
],
"responses": [
{
"is": {
"statusCode": 200,
"headers": {
"Location": "http://localhost:7777/users/1",
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*"
},
"body": "{\"id\":\"1\",\"name\":\"Kane\",\"age\":\"19\"}"
}
}
]
},
{
"responses": [
{
"is": {
"statusCode": 404
}
}
]
}
]
}