Retour à la connexion
E

API Ekolo

Référence des endpoints de l'API REST Ekolo. Base URL: http://localhost:8000

Auth

MéthodeEndpointAuth
POST/api/auth/login
POST/api/auth/register
POST/api/auth/forgot-password
POST/api/auth/logout
GET/api/auth/me
PATCH/api/auth/me

Contact

MéthodeEndpointAuth
POST/api/contact

Dashboard

MéthodeEndpointAuth
GET/api/dashboard/kpis
GET/api/dashboard/summary
GET/api/dashboard/active-tours
GET/api/dashboard/alerts

Analytics

MéthodeEndpointAuth
GET/api/analytics/fuel-trends
GET/api/analytics/waste-categories
GET/api/analytics/productivity
GET/api/analytics/weekly-collection
GET/api/analytics/forecast

Tâches (Tasks)

MéthodeEndpointAuth
GET/api/tasks
POST/api/tasks
GET/api/tasks/{id}
PUT/api/tasks/{id}
DELETE/api/tasks/{id}
PATCH/api/tasks/{id}/status
POST/api/tasks/{id}/accept
POST/api/tasks/{id}/start-route

Sites de déchets (Waste Sites)

MéthodeEndpointAuth
GET/api/waste-sites
POST/api/waste-sites
GET/api/waste-sites/{id}
PUT/api/waste-sites/{id}
DELETE/api/waste-sites/{id}
GET/api/waste-sites/type-counts
PATCH/api/waste-sites/{id}/assign
PATCH/api/waste-sites/{id}/resolve

Tournées (Routes)

MéthodeEndpointAuth
GET/api/routes
POST/api/routes
GET/api/routes/{id}
PUT/api/routes/{id}
DELETE/api/routes/{id}
GET/api/routes/summary
PATCH/api/routes/{id}/status

Véhicules

MéthodeEndpointAuth
GET/api/vehicles
POST/api/vehicles
GET/api/vehicles/{id}
PUT/api/vehicles/{id}
DELETE/api/vehicles/{id}
PATCH/api/vehicles/{id}/status
PATCH/api/vehicles/{id}/assign-driver

Profils agents

MéthodeEndpointAuth
GET/api/profiles
GET/api/profiles/status-counts
GET/api/profiles/{id}
PATCH/api/profiles/{id}/status
PATCH/api/profiles/{id}/position
GET/api/profiles/{id}/tracking

Agent Mobile

MéthodeEndpointAuth
GET/api/agent/stats
GET/api/agent/tasks
GET/api/agent/missions/active
POST/api/agent/complete-mission
GET/api/agent/performance
PATCH/api/agent/status

Achievements

MéthodeEndpointAuth
GET/api/achievements
POST/api/achievements
GET/api/achievements/{id}
PUT/api/achievements/{id}
DELETE/api/achievements/{id}

Signalements (Issue Reports)

MéthodeEndpointAuth
GET/api/issue-reports
POST/api/issue-reports
GET/api/issue-reports/{id}
PUT/api/issue-reports/{id}
DELETE/api/issue-reports/{id}

Notifications

MéthodeEndpointAuth
GET/api/notifications
GET/api/notifications/unread-count
GET/api/notifications/{id}
PATCH/api/notifications/{id}/read
PATCH/api/notifications/read-all
DELETE/api/notifications/{id}
DELETE/api/notifications/clear

Carburant (Fuel Logs)

MéthodeEndpointAuth
GET/api/fuel-logs
POST/api/fuel-logs
GET/api/fuel-logs/{id}
PUT/api/fuel-logs/{id}
DELETE/api/fuel-logs/{id}

Maintenance

MéthodeEndpointAuth
GET/api/maintenance-records
POST/api/maintenance-records
GET/api/maintenance-records/{id}
PUT/api/maintenance-records/{id}
DELETE/api/maintenance-records/{id}

Rapports

MéthodeEndpointAuth
GET/api/reports
POST/api/reports
GET/api/reports/{id}
PUT/api/reports/{id}
DELETE/api/reports/{id}

IA (AI)

MéthodeEndpointAuth
GET/api/ai/executive-summary
GET/api/ai/insights
GET/api/ai/detect-anomalies
POST/api/ai/chat
POST/api/ai/chat/public
POST/api/ai/analyze-costs
POST/api/ai/forecast-waste
POST/api/ai/optimize-routes
GET/api/ai/conversations
GET/api/ai/conversations/{id}
DELETE/api/ai/conversations/{id}

Fichiers

MéthodeEndpointAuth
POST/api/uploads