oscarngncc / COMP4111_project

COMP4111 project
0 stars 0 forks source link

[PUT /books] API does not handle missing properties correctly #25

Open Derppening opened 4 years ago

Derppening commented 4 years ago

Issue description

The PUT /books API accepts null as a valid Available value.

Steps to reproduce the issue

Assuming the database and web server is running:

  1. Login using a valid token.
  2. Insert a new book using the POST /books request.
  3. Submit a PUT request to /books with no payload.

What's the expected result?

What's the actual result?