Special thanks to karkhana.io for providing me with the opportunity to work on this assignment.
This is a Django-based backend API project serves as the foundation for a basic e-commerce platform. It provides RESTful API endpoints for managing products and cart items.
- Product Management: Retrieve all product details, as well as a specific.
- Cart Management: Add products to the shopping cart, view cart items, and remove items from the cart.
- Clone the Repository:
git clone [git@github.com:Pro-Ace-grammer/E-commerce_API.git] - Install Dependencies:
pip install -r requirements.txt - Run Migrations:
python manage.py makemigrations,python manage.py migrate - Start the Development Server:
python manage.py runserver
GET /products: Retrieve a list of all products.GET /products/<id>: Retrieve details of a specific product.POST /cart: Add a product to the cart.GET /cart: Retrieve cart items.DELETE /cart/<id>: Remove a specific item from the cart.
- Django
- Django Rest Framework
- SQLite
- /products: Contains Django app for API endpoints.
- /media: Directory for storing uploaded product images.