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.
25 lines
487 B
25 lines
487 B
module.exports = [
|
|
/* CREATE (409 CONFLICT - should be called on the collection) */
|
|
{
|
|
request: { method: 'POST' },
|
|
response: { status: 409 }
|
|
},
|
|
/* READ */
|
|
{
|
|
request: { method: 'GET' },
|
|
response: {
|
|
status: 200,
|
|
body: { id: 2, name: 'eucalyptus', maxHeight: 210 }
|
|
}
|
|
},
|
|
/* UPDATE */
|
|
{
|
|
request: { method: 'PUT' },
|
|
response: { status: 204 }
|
|
},
|
|
/* DELETE */
|
|
{
|
|
request: { method: 'DELETE' },
|
|
response: { status: 204 }
|
|
}
|
|
]
|