API_EndPoints - acabrera100/personal_project GitHub Wiki
HTML API
Root
GET/
Loads React web app
- /info - Retrieve Blog Info (GET) This returns general information about the user, such as account information.
- /posts/submission — Retrieve Submission Posts (GET) Return a list of all the posts a user has posted
- /posts - Create a Post (POST) This allows you to create posts and posted right away.
- /posts/{post-id} - Editing a Post (Patch) Allows you to edit posts
- /post/delete – Delete a Post (Post) Allows you to delete a single post
- /user/followers– Who is following Is the user (GET)
- /user/following - Who is the user following (GET)
- /user/follow – Follow a user(id)(POST) This will follow a user
- /user/unfollow – Unfollow a user(id) (POST) This will unfollow a user
- /user/like – Like a Post (POST) This will a like an individual post. Referencing the user(id) and the post(id)
- /user/unlike – Unlike a Post (POST) This will a like an individual post. Referencing the user(id) and the post(id)
- /user/getAllLikes - User can (GET) see all of the posts they have liked
Search bar should be only (GET)
- /tagged – Get Posts with Tag (GET) with that id tag.
- (GET) posts at random when the search bar on submit is empty (Explore new posts)
- (GET) filter posts to display based on the text of the search bar