forked from abramhindle/CMPUT404-project-socialdistribution
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Fraser Redford edited this page Mar 28, 2021
·
8 revisions
Welcome to the CMPUT404-project-socialdistribution wiki!
This is the Distributed Social Networking Project for CMPUT 404.
The following API urls are accepted, do with this as you need to.
-
POST api/auth/registerwill create a user (author_register)
-
POST api/auth/loginwill handle a user login request (author_login)
-
GET author/<str:id>/will retrieve an author given an author ID (author_object) -
POST author/<str:id>/will update an author given an author ID (author_object) -
GET api/authorswill return a list of all authors registered with the server (author_list)
-
GET author/<str:author_id>/posts/will return all posts by a given author ID (posts_object) -
POST author/<str:author_id>/posts/will create a new post (posts_object) -
GET author/<str:author_id>/posts/<str:id>/will retrieve a post given an author ID and post ID (post_object) -
POST author/<str:author_id>/posts/<str:id>/will allow an update to be performed on post data (post_object) -
DELETE author/<str:author_id>/posts/<str:id>/will delete allow the author of the post to delete their post (post_object) -
PUT author/<str:author_id>/posts/<str:id>/will create a post given an author ID and a post ID (post_object)
-
GET author/<str:author_id>/posts/<str:post_id>/commentswill return all of the comments for a given post ID (comments_object) -
POST author/<str:author_id>/posts/<str:post_id>/commentswill create a comment on a given post ID (comments_object)
-
GET author/<str:author_id>/post/<str:post_id>/likeswill return all likes for a given post ID (likes_post) -
GET author/<str:author_id>/post/<str:post_id>/comments/<str:comment_id>/likeswill return all likes for a given comment ID (likes_comment)
-
GET author/<str:author_id>/likedwill return all objects that an author liked (liked_list)
-
POST api/query/displayNamewill return all authors matching the queried display name (display_names)
-
GET author/<str:author_id>/followerswill return a list of followers for a given author ID (followers_list) -
GET author/<str:author_id>/followers/<str:foreign_id>will check if a follow exists for a given follower ID (followers_object) -
PUT author/<str:author_id>/followers/<str:foreign_id>will create a follow for a given author ID following another author ID (followers_object) -
DELETE author/<str:author_id>/followers/<str:foreign_id>will delete a follow for a given author ID following another author ID (followers_object)
-
GET author/<str:author_id>/friendswill get a list of friends for a given author ID (friends_object)
-
GET author/<str:author_id>/inboxwill get the inbox for a given author ID (inbox_object) -
POST author/<str:author_id>/inboxwill create an item in the inbox of a given author ID (inbox_object)