jaredtyrel / Portfolio

My Thinkful Portfolio
0 stars 0 forks source link

03 Create reservation within eligible timeframe #4

Open jaredtyrel opened 1 year ago

jaredtyrel commented 1 year ago

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.

Acceptance criteria

1 The /reservations/new page will display an error message with className="alert alert-danger", if any of the following additional constraints are violated:

2 The /reservations API will have the same validations as above and will return 400, along with an informative error message, when a validation error happens.