session-2-homework

Write a REST web server for library

Book { id, author, title }

  • GET /books
  • GET POST PUT DELETE /books/:id
  • GET /books/:id/customers

Customer { id, name }

  • GET /customers
  • GET POST PUT DELETE /customers/:id
  • GET /customers/:id/books
  • POST DELETE /customers/:id/books/:id

Check for data consistency