Skip to content

aditya-10012002/SocialBook_facebook-clone_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working on a social media web app.

Making a backend api for the various functionality.

First is a UserSchema

Routes included:

  • Get a user   get("/:id")

  • Get all users   get("/all")

  • Update user   put("/:id")

  • Delete user   delete("/:id")

  • Get friends   get("/friends/:id")

  • Follow a user   put("/:id/follow")

  • Unfollow a user   put("/:id/unfollow")

Second is PostSchema.

Routes included:

  • Create a post   post("/")

  • Update a post   put("/:id")

  • Delete a post   delete("/:id")

  • Like or Dislike a post   put("/:id/like")

  • Get a post   get("/:id")

  • Get timeline posts   get("/timeline")

  • Get user's all posts   get("/profile/:username")

Lastly is authentications in UserSchema.

Routes included:

  • Register a user   post("/register")

  • Login a user   post("/login")