You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
851 B
43 lines
851 B
{
|
|
"mocks": [
|
|
{
|
|
"route": "/one",
|
|
"response": {
|
|
"body": { "id": 1, "name": "whatever" }
|
|
}
|
|
},
|
|
{
|
|
"route": "/two",
|
|
"request": { "accepts": "xml" },
|
|
"response": {
|
|
"body": "<result id='2' name='whatever' />"
|
|
}
|
|
},
|
|
{
|
|
"route": "/three",
|
|
"targets": [
|
|
{
|
|
"request": { "method": "GET" },
|
|
"response": {
|
|
"body": { "id": 1, "name": "whatever" }
|
|
}
|
|
},
|
|
{
|
|
"request": { "method": "POST" },
|
|
"response": {
|
|
"status": 400,
|
|
"body": { "message": "That method is not allowed." }
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"route": "/four",
|
|
"module": "/mocks/four.js"
|
|
},
|
|
{
|
|
"route": "/five/:id\\?name=:name",
|
|
"module": "/mocks/five.js"
|
|
}
|
|
]
|
|
}
|