-
Notifications
You must be signed in to change notification settings - Fork 1
Backend routes
jas-singh-code edited this page Mar 15, 2021
·
5 revisions
GET / StaticPagesController#root
-
Get api/users
- returns the user's posts -
POST api/users
- post on the users wall
-
POST api/session
-login -
DELETE api/session
-logout
-
GET api/posts
-returns relevent posts using params -
GET api/posts/:postId
-returns the specified post -
POST api/posts/new
-create a new post -
PATCH api/posts/:postId
-edits the specified post -
DELETE api/posts/:postId
-deletes the specified post
-
POST api/likes
- like a post or comment -
DELETE api/likes
- delete a like from a post or comment
-
POST api/friends
-request a friend -
DELETE api/friends
-unfriend/decline request