backend routes - cgradeff/Spelled GitHub Wiki
-
GET /
StaticPagesController#root
-
GET /api/users/:id
- returns the user information of displayed listings
-
POST /api/users
- sign up
-
POST /api/session
- login
-
DELETE /api/session
- logout
-
GET /api/listings
- returns relevant listings (filtered by data/params
)
-
GET /api/listings/:id
- returns listing
-
POST /api/listings
- creates a listing
-
PATCH /api/listings/:id
- edit a listing
-
DELETE /api/listings/:id
- remove a listing
-
GET /api/listings
- returns relevant messages
-
GET /api/listings/:id
- returns message
-
GET /api/reviews/:user_id
- returns relevant messages
comments
-
GET /api/comments/:list_id
- returns relevant comments of a listing
-
POST /api/comments/:list_id
- creates a comment on a listing
-
GET /api/favorites
- returns relevant favorites
-
POST /api/favorites
- creates a favorite
-
DELETE /api/favorites/:id
- remove a favorite
⚠️ **GitHub.com Fallback** ⚠️