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

9 years ago
9 years ago
9 years ago
  1. module.exports = [
  2. /* CREATE (409 CONFLICT - should be called on the collection) */
  3. {
  4. request: { method: 'POST' },
  5. response: { status: 409 }
  6. },
  7. /* READ */
  8. {
  9. request: { method: 'GET' },
  10. response: {
  11. status: 200,
  12. body: { id: 2, name: 'eucalyptus', maxHeight: 210 }
  13. }
  14. },
  15. /* UPDATE */
  16. {
  17. request: { method: 'PUT' },
  18. response: { status: 204 }
  19. },
  20. /* DELETE */
  21. {
  22. request: { method: 'DELETE' },
  23. response: { status: 204 }
  24. }
  25. ]