BackEnd Routes - GaronHock/InstaGaron GitHub Wiki

Backend Routes HTML

• GET / StaticPagesController#root

API Endpoints

users

 GET /api/users/:userId/feed-  Populate users main feed

•GET /api/users - the User Search feature

•SHOW /api/users/:userid - show specific user page

•POST /api/users - create new user

•PATCH /api/users/:id - edit existing user

•DELETE /api/users/:userId - delete user

session

•POST /api/session - log in

•DELETE /api/session - log out

Photos

GET /api/photos/:id - returns specific photo for user

POST /api/photos - creates a photo

PATCH /api/photos/:user_id - edit a photo, comments/description

DELETE /api/photos/:id - remove a photo

likes

POST /api/photo/:photo_id/likes - like a photo

DELETE /api/photo/:photo_id/likes - unlike a photo

Followers