issues
search
Lillith13
/
Airburbs
0
stars
0
forks
source link
Delete a Booking
#23
Open
Lillith13
opened
1 year ago
Lillith13
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.
message
indicating a successful deletionid
startDate
(no deleting of current or past bookings)