Skip to content

API Routes

Andrew edited this page Sep 11, 2021 · 13 revisions

Bookings

  • Signed in users can make reservations(bookings) on spots.

DELETE /api/bookings/:bookingId

  • Signed in users can cancel reservations(bookings) that they made

    DELETE /api/bookings/:bookingId

Reviews

  • signed-in users can post reviews on spots they have stayed at (if the booking/:id associated with them is in the past)

    POST /api/reviews

  • signed-in users can delete reviews they made

    DELETE /api/reviews/:reviewId

SPOTS

  • Signed in users should be able to host a new spot

    POST /api/spots

  • Signed in users should be able to stop hosting a spot

    DELETE /api/spots/:spotId

Clone this wiki locally