Skip to content

API Routes

Kevin Bartolome edited this page May 24, 2022 · 6 revisions

Spots

  • All users can read spots. Only logged in users can create, update, or delete their Spots
    • GET /spots
    • POST /spots
    • PUT /spots/:spotId
    • DELETE /spots/:spotId

Bookings

  • A logged in user can create, read, or delete their Bookings
  • Users can only view their own Bookings and cannot view other users' Bookings
    • GET /bookings
    • POST /bookings
    • DELETE /bookings

Reviews

  • All users can read Reviews. Only logged in Users can create, update, or delete their Reviews
    • GET /reviews
    • POST /reviews
    • PUT /reviews/:spotId
    • DELETE /reviews/:spotId
Clone this wiki locally