A Blog application developed using Django framework 3.1. See live at: https://blog-app-pydj.herokuapp.com/
- User Authentication - Users can register, login and logout
- Create, Edit and Delete Posts
- Users can Like and Comment on posts.
- Connections - Follow/Unfollow other users.
DEBUG_VALUE = True
DJANGO_ENV = DEV
SECRET_KEY_BLOG = <Your Secret Key>
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py test
- GET
https://blog-app-pydj.herokuapp.com/api/v1/viewset/users
- Returns the list of all users registered.
- GET
https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts
- Returns the list of all posts by all users. - POST
https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts
- Creates a new post.Data required =
{"title": "Title", "description": "Description", "author": "Author ID"}
- GET
https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id>
- Returns a post by it's post ID. - PUT
https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id>
- Updates a post by it's post ID. - DELETE
https://blog-app-pydj.herokuapp.com/api/v1/viewset/posts/<id>
- Deletes a post by it's post ID. - GET
https://blog-app-pydj.herokuapp.com/api/v1/posts/?username=<username>
- Returns a list of all posts by a specific user by his username.