How nuruyql/internship works
Phone API is a Django REST Framework backend for phone-catalog management and shopping. Users browse and manage phones, categories, favorites, and reviews; authenticated users can build a cart, create orders, and mark payments paid, while registration, profile, and JWT token endpoints support account access. The graph separates API routing, request handling, validation/permissions, domain persistence, and account access. Product sources were excerpted; routing and runtime configuration outside those excerpts are represented only where README or index evidence supports them.
Main entry points: views.py Catalog endpoints · models.py Product and order models · proucts/urls.py Product routes · users/urls.py Account routes
Components 18
API routing
- Product routes
mysite/proucts/urls.py - Account routes
mysite/users/urls.py - Product permissions
mysite/proucts/permissions.py
Catalog and feedback
- Catalog endpoints
mysite/proucts/views.py - Phone catalog
mysite/proucts/views.py - Category management
mysite/proucts/views.py - Favorites and reviews
mysite/proucts/views.py - Product validation
mysite/proucts/serializers.py
Cart and checkout
- Cart endpoints
mysite/proucts/views.py - Order processing
mysite/proucts/views.py - Payment status
mysite/proucts/views.py
Accounts and access
- Registration and profile
mysite/users/views.py - Account serializers
mysite/users/serializers.py - JWT endpoints
mysite/users/urls.py
Persistence
- Product and order models
mysite/proucts/models.py - SQLite database
mysite/db.sqlite3 - Phone image files
mysite/media/phones
Other components
- API client
Connections 20
- API client → Product routes: requests
mysite/proucts/urls.py - Product routes → Catalog endpoints: routes to
mysite/proucts/urls.py - Product routes → Cart endpoints: routes to
mysite/proucts/urls.py - API client → Account routes: requests
mysite/users/urls.py - Account routes → Registration and profile: routes to
mysite/users/urls.py - Account routes → JWT endpoints: exposes tokens
mysite/users/urls.py - Catalog endpoints → Phone catalog: dispatches
mysite/proucts/views.py - Catalog endpoints → Category management: dispatches
mysite/proucts/views.py - Catalog endpoints → Favorites and reviews: dispatches
mysite/proucts/views.py - Catalog endpoints → Product validation: serializes
mysite/proucts/views.py - Catalog endpoints → Product permissions: checks access
mysite/proucts/views.py - Catalog endpoints → Product and order models: queries and saves
mysite/proucts/views.py - Cart endpoints → Order processing: creates orders
mysite/proucts/views.py - Cart endpoints → Payment status: dispatches
mysite/proucts/views.py - Cart endpoints → Product validation: serializes
mysite/proucts/views.py - Cart endpoints → Product and order models: queries and saves
mysite/proucts/views.py - Registration and profile → Account serializers: serializes
mysite/users/views.py - Product and order models → SQLite database: persists records
README.md - Phone catalog → Phone image files: stores uploads
- Product validation → Product and order models: validates models
mysite/proucts/serializers.py