Monday, Apr 11, 2022
shippedFoundation for an e-commerce API in Django REST Framework
Anurag Verma initialized a new e-commerce API project across 16 commits, scaffolding the core Django apps and wiring up the first working endpoints.
Starting with the repository's first commit [1], Verma laid out the project structure with a .gitignore file [2] and initial configuration. He added media URL and root settings to the Django configuration [3] to handle file uploads, and created a requirements.txt to track dependencies [4].
The work then moved through creating the main application modules: api [4], category [5], order [6], payment [7], product [8], and user [9]. Verma completed the Django REST Framework integration [10], setting up the serializer and viewset structure needed for the API endpoints.
With the framework in place, he built out the first working features. The category model was created and tested [11], followed by a working category API endpoint [12]. He then created and tested a product API endpoint [13], giving the project its first concrete, queryable resources. A simple test endpoint was also added to verify the API was responding .
Sources
- first commit · anurag629/Ecommerce-API
- added .gitignore · anurag629/Ecommerce-API
- added media url and root to settings.py file · anurag629/Ecommerce-API
- created api app and requirements.txt file · anurag629/Ecommerce-API
- created category app · anurag629/Ecommerce-API
- created order app · anurag629/Ecommerce-API
- created payment app · anurag629/Ecommerce-API
- created product app · anurag629/Ecommerce-API
- created user app · anurag629/Ecommerce-API
- done all drf · anurag629/Ecommerce-API
- category model created and working fine · anurag629/Ecommerce-API
- created and checked category api · anurag629/Ecommerce-API
- created and tested product api · anurag629/Ecommerce-API