How gustavobertucci/property-rental works
This repository is a Django REST backend for an imóvel-rental site. Its principal workflow routes client requests to user, property, contract, or payment viewsets, which use serializers and filters around the rental domain models; an additional endpoint imports users from a workbook. The README describes the product broadly, while the sampled code exposes these API capabilities and a property-chart action. The graph reflects shown routes and references; database use follows the configured Django backend, and unsampled runtime wiring is not inferred.
Main entry points: models.py Rental Models · urls.py API Routes · views.py Rental Viewsets · importar.py Workbook Import
Components 12
HTTP API
- API Routes
api/urls.py - Rental Viewsets
api/views.py - Workbook Import
api/importar.py - JWT Endpoints
api/urls.py - API Serializers
api/serializers.py - Query Filters
api/filters.py
Rental Domain
- Rental Models
api/models.py - Admin Interface
api/admin.py
Runtime and Storage
- Project Routes
alugueis/urls.py - Database Config
alugueis/settings.py
Other components
- API Client
- MySQL Database
Connections 13
- Project Routes → API Routes: includes
alugueis/urls.py - API Routes → Rental Viewsets: routes to
api/urls.py - API Routes → Workbook Import: routes to
api/urls.py - API Routes → JWT Endpoints: configures
api/urls.py - API Client → Project Routes: sends requests
- Rental Viewsets → API Serializers: uses
api/views.py - Rental Viewsets → Query Filters: uses
api/views.py - Rental Viewsets → Rental Models: queries
api/views.py - Query Filters → Rental Models: filters
api/filters.py - API Serializers → Rental Models: serializes
api/serializers.py - Workbook Import → Rental Models: checks users
api/importar.py - Admin Interface → Rental Models: registers
api/admin.py - Database Config → MySQL Database: configures
alugueis/settings.py