Files
hiring-test-one/example/mock/mocks/trees.mock.js
2015-11-18 16:37:16 +00:00

24 lines
359 B
JavaScript

module.exports = [
{
request: {
method: 'GET'
},
response: {
status: 200,
body: [
{ id: 1, name: 'conifer', maxHeight: 115 },
{ id: 2, name: 'eucalyptus', maxHeight: 210 }
]
}
},
{
request: {
method: 'POST'
},
response: {
status: 201,
location: '/tree/1'
}
}
]