Products of any price were able to be created. Added validation to reject anything other $17500.
Changes
Added if guard to check if price was less than or equal to 17500
Requests / Responses
If this PR contains code that defines a new request/response, or changes an existing one, please put the JSON representations here.
Request
Testing
[ ] Open Python Bangazon API collection on Postman and select POST create product (JSON body). increase price to over 17500. A response body and 201 status should return.
Products of any price were able to be created. Added validation to reject anything other $17500.
Changes
Requests / Responses
If this PR contains code that defines a new request/response, or changes an existing one, please put the JSON representations here.
Request
Testing
Related Issues