-
Notifications
You must be signed in to change notification settings - Fork 3
Backend Routes
jli57 edited this page Oct 10, 2018
·
10 revisions
GET /StaticPagesController#root
-
GET /api/users
- returns user information, including user's posts -
POST /api/users
- sign up
-
POST /api/session
- log in -
DELETE /api/session
- log out
-
GET /api/posts
- returns relevant posts, include comments and likes of each post -
POST /api/posts
- create a post -
PATCH /api/posts/:post_id
- update a post -
DELETE /api/posts/:post_id
- delete a post
-
POST /api/posts/:post_id/comments
- create a comment -
PATCH /api/comments/:comment_id/edit
- update a comment -
DELETE /api/comments/:comment_id
- delete a comment
-
POST /api/userRelationships
- creates a user relationship -
PATCH /api/userRelationships
- update a user relationship
-
POST /api/likes
- creates a like -
DELETE /api/likes/:like_id
- deletes a like
-
POST /api/albums
- create album -
DELETE /api/albums/:album_id
- delete album