This repository has been archived by the owner on Aug 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Solal Pirelli edited this page May 11, 2014
·
5 revisions
#Methods
###POST /api/auth
Body:
{
Name: string,
PictureUrl: string,
ProfileLink: string,
FacebookId: int
}
"Authenticates". Needs to be done before using the FacebookId.
###GET /api/posts?latitude=<float>&longitude=<float>&range=<float>[&userFacebookId=<int>]
Gets all posts using a super-simple algorithm.
###GET /api/posts/<int>
Gets the post with the specified ID.
###POST /api/posts/add
Body:
{
UserFacebookId: int,
Title: string,
Content: string,
Location: {
Latitude: float,
Longitude: float,
DisplayName: string
}
}
Adds a new post.
###DELETE /api/posts
Body:
{
UserFacebookId: int,
PostId: int
}
Deletes the specified post (only if the user created it, of course)
###POST /api/posts/upvote
Body:
{
UserFacebookId: int,
PostId: int
}
Upvotes the specified post.
###DELETE /api/posts/upvote
Body:
{
UserFacebookId: int,
PostId: int
}
Removes an upvote from the specified post.