issues
search
AmusedPocket
/
TrevBnb
0
stars
0
forks
source link
Delete a Booking
#22
Open
AmusedPocket
opened
8 months ago
AmusedPocket
commented
8 months 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.
message
indicating a successful deletionid
startDate
(no deleting of current or past bookings)