FastAPI backend providing basic social media features
Note for Docs: Wherever there is the lock 🔓 icon you have to be an authorized user (you must be logged in) to make that request.
- User can login using the email and password only
-
User can be created by following the UserCreate Schema
-
User details can be fetched using the id of the user
-
User can get all the posts or either few of them with the help of query params:
-
limit: integer
- Limit the number of posts by specifying integer values. -
skip: integer
- Applies an offset to the posts and returns the newly resulting posts. -
search: string
(Optional) - Search a post title which contains the search string.
-
-
User can also create a post by passing JSON object as a parameter following the PostCreate Schema.
-
User can also ask for an individual post.
-
User can only Update/Delete his/her own post(s).
-
It is similar to Facebook's Like button functionality.
-
User can vote(like) a post and unvote(dislike) the post that has been voted previously by you.