multiverse-team-11 / inventory-app

https://inventory-app-11-1emn.onrender.com/
0 stars 2 forks source link

Bonus Stuff - server-side validations #21

Closed Hannah0701 closed 4 months ago

Hannah0701 commented 4 months ago

User Story

As an Admin, I want all Add and Edit item requests to have server-side validations

Implementation Details

No server side validation necessary for the GET and DELETE functions/methods Added server side validations to POST and PUT requests to check input values valid:

Updated status codes

Hannah0701 commented 4 months ago

https://github.com/multiverse-team-11/inventory-app/commit/614311a31bc416e752e68b69090748d73ff3ae26 accidentally forgot to make a branch and committed directly into the main branch (should probably establish branch protection to prevent this)