- users can Post their tweets.
- users can Comment on tweets.
- users can Like each other's tweets.
- users can Retweet each other's tweets.
CREATE A VIRTUAL ENVIRONMENT THEN CLONE THIS INTO FOLDER OF env!
Commands for setup inside 'blog-post' folder:
python manage.py makemigrations
python manage.py makemigrations tweets
python manage.py migrate
python manage.py migrate tweets
python manage.py runserver
Open endpoints require no Authentication.
Closed endpoints require a valid Token to be included in the header of the request.
- Home :
GET /api/ - Post :
POST /api/post/ - Like :
POST /api/ajax/like/ - Retweet :
POST /api/ajax/retweet/ - Delete :
POST /api/delete_tweet/<int:post_id>/ - Reply :
POST /api/comment/<int:post_id>/ - Tweet + Comments :
GET /api/comment/<int:post_id>/ - Likes User List :
GET /api/show_likes/<int:post_id>/ - Profile :
GET /api/user/<username>/
Each endpoint manipulates or displays information related to the User whose Token is provided with the request:
- Logout :
POST /api/logout/ - Edit Profile :
POST /api/user/<username>/edit_profile/ - Notification :
GET /api/user/notification/
Endpoints for viewing and manipulating other Users Relation with the User Token is provided with request:
- Follow/Unfollow :
POST /api/user/<username>/follow/