Base URL: http://localhost:4000/api
List all reports.
Response:
{ "reports": [ { "id": "...", "latitude": 45.46, "longitude": 9.19, "status": "reported", ... } ] }Get a single report.
Create a new report. multipart/form-data.
| Field | Type | Required | Notes |
|---|---|---|---|
| photos | File[] | ✅ | up to 5 image files |
| latitude | number | ✅ | |
| longitude | number | ✅ | |
| severity | string | ❌ | small / medium / large |
| description | string | ❌ | |
| tags | JSON array | ❌ | e.g. ["Plastic","Hazardous"] |
| anonymous | boolean | ❌ |
Update status (admin/moderator). JSON body: { "status": "verified" }.
Statuses: reported | verified | cleaning | cleaned | rejected