AMRUT 2.0 Backend REST API Documentation For Frontend Developer / Gemini 3.1 Pro…
- User
AMRUT 2.0 Backend REST API Documentation For Frontend Developer / Gemini 3.1 Pro Integration
The backend for the AMRUT 2.0 Fund Analytics & SNA SPARSH Dashboard is live and running on http://localhost:8000.
Base URL: http://localhost:8000 Interactive Swagger UI (OpenAPI Docs): http://localhost:8000/docs ReDoc Documentation: http://localhost:8000/redoc CORS Status: Enabled for all origins (*) — full access from any React/Vite/Next.js frontend. 📡 Endpoints Summary Endpoint Method Description Primary UI Component /api/health GET Health check endpoint App Status Indicator /api/overview GET State-level totals, GoI/GoTN/ULB shares, funding agencies, and slot releases Executive Overview KPI Cards, Funding Pie Charts, Slot Timeline /api/districts GET All 38 districts with total project counts, cost, released, release % District Heatmap / Card Grid /api/sectors GET Sector-wise funding stats (Water Supply, UGSS, Water Bodies, Parks) Sector Analytics Bar Chart /api/hods GET Performance metrics by HOD (CMWSSB, DMA, DTP) HOD Filter Tabs /api/projects GET Searchable, paginated project explorer with filters (district, sector, hod, search, page, limit, sort_by, sort_dir) Projects Data Table / Grid /api/projects/{id} GET Single project detailed profile Project Modal / Detail View /api/abs/lookup GET Replicates Excel ABS tab lookups (district, ulb, sector, project_id) Interactive ULB & Project Card (Excel ABS Tab equivalent) /api/export/csv GET Downloads filtered project dataset as CSV Export to CSV Button 📄 Endpoint Details & Sample JSON Responses
- GET /api/overview Description: Returns master state totals matching the Excel Over all ABS tab.
Sample Request:
js
fetch('http://localhost:8000/api/overview') .then(res => res.json()) .then(data => console.log(data)); Sample Response Payload:
json
{ "master_state_totals": { "total_approved_project_cost": 139778027000.0, "total_released_to_date": 63739546743.0, "overall_release_percentage": 45.6, "goi_share": { "approved": 49711900000.0, "released": 22980304341.0, "percentage": 46.23 }, "gotn_share": { "approved": 37133319700.0, "released": 16983405011.0, "percentage": 45.74 }, "ulb_share": { "approved": 52932931300.0, "released": 23775837418.0, "percentage": 44.92 } }, "funding_agencies": [ { "key": "knmt", "title": "KNMT Allocation", "val_approved": 7212753000.0, "val_released": 6292307700.0, "release_pct": 87.24 }, { "key": "kfw", "title": "KFW Allocation", "val_approved": 16885581000.0, "val_released": 5031900000.0, "release_pct": 29.8 }, { "key": "world_bank", "title": "World Bank Allocation", "val_approved": 5140862300.0, "val_released": 1060000000.0, "release_pct": 20.62 }, { "key": "cgf", "title": "CGF Allocation", "val_approved": 4030850000.0, "val_released": 4030850000.0, "release_pct": 100.0 }, { "key": "suidf", "title": "SUIDF Allocation", "val_approved": 3827400000.0, "val_released": 1896542000.0, "release_pct": 49.55 } ], "sparsh_slots": [ { "slot_id": 1, "slot_name": "1st Slot", "slot_date": "25.10.2025", "total_released": 9310239544.0, "goi_released": 3468916169.0, "gotn_released": 2793071868.0, "ulb_released": 3048251520.0 }, { "slot_id": 2, "slot_name": "2nd Slot", "slot_date": "06.01.2026", "total_released": 2709600460.0, "goi_released": 993632499.0, "gotn_released": 812880139.0, "ulb_released": 903087830.0 } ] } 2. GET /api/projects Description: Search, filter, sort, and paginate through all 1,855+ project records.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.