Welcome to E-commerce API
A comprehensive RESTful API for building e-commerce platforms with full support for product browsing, shopping cart management, order processing, and integrated payment handling. Built with Django REST Framework and designed for scalability.Key Features
This API provides everything you need to power a complete e-commerce platform:- JWT Authentication - Secure token-based authentication with access and refresh tokens
- Product Catalog - Browse products with pagination, filtering, and search capabilities
- Shopping Cart - Add, update, and remove items with real-time cart management
- Order Management - Create, track, and update orders with status tracking
- Payment Processing - Braintree payment integration for secure transactions
- Product Reviews - Customer reviews and ratings for products
- Wishlist - Save products for later purchase
- Store Management - Multi-vendor support with store profiles
- Interactive Documentation - Swagger UI for testing endpoints
Quick Links
Quickstart Guide
Get up and running in 5 minutes with your first API call
Installation
Set up the API locally using Docker and Docker Compose
Authentication
Learn how to authenticate users and manage JWT tokens
API Reference
Explore all available endpoints and their parameters
Technology Stack
The E-commerce API is built with modern, production-ready technologies:- Python 3.10 - Modern Python with type hints and performance improvements
- Django 5.0 - Robust web framework with ORM and admin interface
- Django REST Framework 3.15 - Powerful toolkit for building Web APIs
- PostgreSQL 12 - Reliable relational database with advanced features
- JWT Authentication - djangorestframework-simplejwt for secure token-based auth
- Braintree - Payment gateway integration for credit card processing
- Celery - Asynchronous task processing for background jobs
- RabbitMQ - Message broker for task queuing
- Gunicorn - Production-grade WSGI HTTP server
- Docker - Containerized deployment for consistency across environments
API Structure
All API endpoints are versioned and follow RESTful conventions:Main Endpoint Groups
/api/v1/products/- Product catalog and reviews/api/v1/categories/- Product categories/api/v1/shopping-cart/- Shopping cart operations/api/v1/orders/- Order management/api/v1/customers/- Customer accounts/api/v1/checkout/- Payment processing/api/v1/stores/- Store management/auth/token/- Authentication endpoints
Response Format
All responses are returned in JSON format with consistent structure:The API uses limit-offset pagination with a default page size of 10 items. You can adjust this using the
limit and offset query parameters.Getting Help
Interactive Documentation
Test API endpoints directly in your browser with Swagger UI
OpenAPI Schema
Download the complete OpenAPI schema for code generation
Next Steps
- Follow the Installation Guide to set up the API locally
- Complete the Quickstart Tutorial to make your first API call
- Learn about Authentication to secure your requests
- Explore the API Reference for detailed endpoint documentation