-
Notifications
You must be signed in to change notification settings - Fork 6
Backend Routes
taisiat edited this page May 4, 2023
·
4 revisions
-
GET /
-StaticPagesController#FrontendIndex
-
GET /api/session
- restore session -
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/users/:id
- returns one user's full profile information plus associated data -
POST /api/users
- sign up
-
GET /api/cars
- returns car index page information, with cars filtered by search criteria, plus their associated data -
GET /api/cars/:id
- returns car's show page information containing its full detail and associated data
-
GET /api/trips/:id
- returns trip's show page information containing its full detail and associated info -
GET /api/trips
- all trips' info and associated info -
POST /api/trips
- create a trip -
DELETE /api/trips/:id
- delete a trip -
PATCH /api/trips/:id
- edit a trip
-
GET /api/reviews
- all cars' review data -
POST /api/reviews
- create a review -
GET /api/reviews/:id
- info on a given review -
DELETE /api/reviews/:id
- delete a review -
PATCH /api/reviews/:id
- edit a review
-
GET /api/favorites
- see all favorites for current user -
POST /api/favorites
- favorite a car -
DELETE /api/favorites/:id
- unfavorite a car