CleanLoop System Architecture Inspector

Watch real HTTP requests flow from browser ➔ Django Views ➔ Smart Priority Engine ➔ SQLite3 database ➔ JSON Response

LIVE REQUESTS: 0
2xx: 0
4xx: 0
5xx: 0
ACTIVE: 0
AVG RESP: 0ms
Last event: --:--:--
🌐
CLIENT
Browser / fetch()
🐍
DJANGO BACKEND
urls.py & views.py
⚙️
SMART LOGIC
Priority Engine
💾
SQLITE3 DB
Django ORM
📦
JSON RESPONSE
HTTP Output
Every animation on this screen is driven by a real backend event via Django Channels.
LIVE TRAFFIC GRAPH (Req/sec)
LIVE EVENT LOG
[System] Event stream ready...
⚡ HACKATHON DEMO PRESETS (1-CLICK TEST)
GET 🟢
Health Check
/api/health/
GET 🔵
List Complaints
/api/complaints/
GET 🟣
Get Detail
/api/complaints/WM-2026-0026/
POST ⚡
Create Report
/api/complaints/
PATCH ⚙️
Update Status
/api/complaints/WM-2026-0026/
DELETE 🔴
Delete Record
/api/complaints/WM-2026-0026/
🚀 REQUEST BUILDER
Content-Type: application/json
X-CSRFToken: fetching...
📦 LIVE BACKEND RESPONSE
READY
-- ms
Content-Type: application/json
// Click "SEND LIVE REQUEST" or select a preset to view actual response JSON...
📜 SESSION REQUEST HISTORY
Client-side log
METHOD ENDPOINT STATUS DURATION TIMESTAMP
No requests executed yet in this session.
💾 SQLITE3 DATABASE SCHEMA

Live records are persisted securely in db.sqlite3 using standard Django ORM models.

Complaint Table
• complaint_id CharField (WM-YYYY-NNNN)
• issue_type CharField
• priority CharField (Auto Smart)
• status CharField (Lifecycle)
• latitude/longitude FloatField
PickupRequest Table
• pickup_id CharField (PK-YYYY-NNNN)
• waste_category CharField
• quantity CharField
• preferred_date DateField
• status CharField
UserProfile Table
• user OneToOne(User)
• clean_coins IntegerField (+50 reward)
• phone / address CharField
• is_admin_staff BooleanField
ComplaintUpdate Table
• complaint ForeignKey(Complaint)
• status CharField
• note TextField (Audit Log)
• created_at DateTimeField
📖 API ENDPOINT CATALOG
METHOD ENDPOINT PURPOSE AUTHORIZATION
GET /api/health/ Lightweight server & DB health status Public
GET /api/complaints/ Retrieve complaint records list from SQLite3 Public / User Scoped
GET /api/complaints/<id>/ Retrieve detailed complaint object Owner / Staff Only
POST /api/complaints/ Submit new waste report with smart auto-priority Authenticated / Demo
PATCH /api/complaints/<id>/ Update complaint status, priority & assign crew Staff Admin Only
DELETE /api/complaints/<id>/ Delete complaint record from database Staff Admin Only