issues
search
gracecizma
/
HeirBnB
0
stars
0
forks
source link
Delete a Booking
#28
Open
gracecizma
opened
1 year ago
gracecizma
commented
1 year ago
Delete an existing booking.
[x] An authenticated user is required for a successful response
[x] Only the owner of the booking or the owner of the spot is authorized to delete the booking
[x] Booking record is removed from the database after request
[x] Success response includes a message indicating a successful deletion
[x] Error response with status 404 is given when a spot does not exist with the provided id
[x] 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.