by Priyanshu Songara

API Documentation

This Blog API is built using Django REST Framework with JWT authentication. It supports user registration, secure login, blog post creation with permissions, commenting system, pagination for performance, and filtering/search functionality. The system follows REST architecture with modular design and scalable backend structure.

CORE WORKFLOW
User Register
JWT Login
Token Auth
Access API
Posts / Comments
API ENDPOINTS

Authentication

Register new user
POST /api/users/register/
Login (JWT token)
POST /api/token/

Posts

Get all posts (paginated)
GET /api/posts/?page=1
Create post
POST /api/posts/
Search posts
GET /api/posts/?search=django

Comments

View comments
GET /api/comments/
Add comment
POST /api/comments/