Backend Routes - acrks/rillow GitHub Wiki
HTML
- `GET / StaticPages Controller#root
API Endpoints
users
GET /api/users/
- Assists the User Search featureGET /api/users/:id
- returns user information with created listingsPOST /api/users
- create a user profile
session
POST /api/session
- log inDELETE /api/session
- log out
listings
GET /api/listings
- return a list of listings based on user-entered params and other dataGET /api/listings/:id
- get a page dedicated to a specific listing with comprehensive description and specsPOST /api/listings
- create listingPATCH /api/listings/:id
- edit listingDELETE /api/listings/:id
- edit a listing
likes
POST /api/likes
- like a listingDELETE /api/likes/:id
- unlike a listings
Note: All listings that a user has liked, will all be rendered out by jbuilder view /api/users/:id/likes. See Sample State for more details
tours
- POST
/api/tours
- create a tour - DELETE
/api/tours
- delete a tour - PATCH
/api/tours/:id
- edit a tour time
Note: All tours that a user has scheduled listings for will be rendered out by jbuilder view /api/users/:id/tours. See Sample State for more details