-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
AlexDoes edited this page Dec 17, 2021
·
4 revisions
GET /StaticPagesController#root
-
GET /api/users/to return all users. -
GET /api/users/:idto search and display the specific user with their listings, reservations, and reviews they've interacted with. -
POST /api/usersto sign up as a new user. -
PATCH /api/users/:idto update the specific user account associated with the user ID.
-
POST /api/sessionto sign in a user. -
DELETE /api/sessionto sign out a user.
-
GET /api/listingsto return all listings. -
GET /api/listings/:idto return the listing associated with the ID. -
GET /api/users/:user/listingsto return all listings associated with a specific user associated with the user ID. -
POST /api/listingsto create a new listing. -
PATCH /api/listings/:idto update a specific listing associated with the ID. -
DELETE /api/listings/:idto delete the specific listing associated with the ID.
-
GET /api/user/:user/reservationsto return all reservations for a specific user associated with the user ID. -
GET /api/reservations/:idto return the specific reservation associated with the ID. -
POST /api/reservationsto make a new reservation. -
PATCH /api/reservations/:idto update the specific reservation associated with the ID. -
DELETE /api/reservations/:idto delete the specific reservation associated with the ID.
-
GET /api/listing/:listing/reviews/to return all reviews for a specific listing associated with the listing ID. -
GET /api/reviews/:idto return the review associated with the ID. -
POST /api/reviewsto create a new review. -
PATCH /api/reviews/:idto update a specific review associated with the ID. -
DELETE /api/reviews/:idto delete the specific review associated with the ID.