A REST API developed using Django Rest Framework for CRUD operations on a blog application.
- GET list of users
http://127.0.0.1:8000/users/
- GET information of users by user id.
http://127.0.0.1:8000/users/<id>
- GET all posts
http://127.0.0.1:8000/posts/
- GET, Delete, Update own post
http://127.0.0.1:8000/posts/<id>
- GET Comments on posts
http://127.0.0.1:8000/comments/
- PUT, DELETE and GET comments on posts by comment id
User can delete or update their own comments only.
http://127.0.0.1:8000/comments/<id>
User can log in using the button on the right most top corner.
For creating new user, visit http://127.0.0.1:8000/admin
.
Login credentials are
username : admin
password : admin12345