issues
search
yoshelb
/
mod-4-portfolio-project
0
stars
0
forks
source link
### Delete a Booking
#25
Open
yoshelb
opened
3 months ago
yoshelb
commented
3 months ago
Delete an existing booking.
[ ] An authenticated user is required for a successful response
[ ] Only the owner of the booking or the owner of the spot is authorized to delete the booking
[ ] Booking record is removed from the database after request
[ ] Success response includes a
message
indicating a successful deletion
[ ] Error response with status 404 is given when a spot does not exist with the provided
id
[ ] Error response with status 400 is given when it is past the booking's
startDate
(no deleting of current or past bookings)
Delete an existing booking.
message
indicating a successful deletionid
startDate
(no deleting of current or past bookings)