Back End Routes - GeniusSniper/atoz GitHub Wiki
Home page
- get / StaticPagesController#root
API Endpoints
users
post /api/user
- creating a user
session
-
post /api/session
- log in - returns current user information -
delete /api/session
- log out
items
-
get /api/items
- return all items in the database -
get /api/items/:id
- return an item with the id
reviews
-
post /api/reviews
- creating reviews only when logged in -
patch /api/reviews/:id
- editing the review with that id only with the creater user -
delete /api/reviews/:id
- deleting the review with the id only with the creater user