Open SJBroida opened 2 years ago
/reservations/new
page will display an error message with className="alert alert-danger"
, if any of the following additional constraints are violated:
/reservations
API will have the same validations as above and will return 400, along with an informative error message, when a validation error happens.Hint Parsing a Date that includes the time in JavaScript can be tricky. Again, keep an eye out for which time zone is being used for your Dates.
User Story 3:
As a restaurant manager I only want to allow reservations to be created during business hours, up to 60 minutes before closing so that users do not accidentally create a reservation for a time we cannot accommodate.