Last active
March 13, 2016 00:01
-
-
Save lodenrogue/82c0d292eeea54878d9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User | |
/api/users POST - params: firstName: String, lastName: String, email: String - Creates a new user and returns the user object | |
/api/users/{email or id}/ GET - Returns a user object matching the email or id (MUST INCLUDE THE TRAILING SLASH) | |
============== | |
Friendship | |
/api/friends POST - params: userId: int, friendId: int - Creates a new doubly linked friendship returns the friendship object | |
/api/friends/{id} GET - Returns a friendship object matching the id | |
/api/friends/user/{userId} GET - Returns a list of friendships associated with the user | |
============== | |
Post | |
/api/posts POST - params: userId: int, content: String - Creates a new post and returns the post object | |
/api/posts/{id} GET - Returns the post object matching the id | |
/api/posts/user/{userId} GET - Returns a list of posts associated with the user | |
============== | |
Comment | |
/api/comments POST - params: userId: int, postId: int, content: String - Creates a new comment and returns the comment object | |
/api/comments/{id} GET - Returns the comment object matching the id | |
/api/comments/post/{postId} GET - Returns a list of comments associated with the post | |
============== | |
Friend Request | |
/api/requests POST - params: userTargetId: int, userRequestingId: int - Creates a new friend request and returns the friend request object | |
/api/requests/{id} GET - Returns the friend request matching the id | |
/api/requests/user/{userId} GET - Returns a list of friend requests targeted at the user with userId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment