Phase 1 : endpoints API complets

- CoastalPoint → shortName Spot → /api/spots (API Platform)
- SargassumForecast → shortName Forecast → /api/forecasts
- ObservationController : GET /api/observations avec filtres
  bbox (PostGIS ST_Intersects), date, source + geometry ST_AsGeoJSON
- SpotScoreController : GET /api/spots/{id}/score avec ?at= optionnel
- FeedbackController : POST /api/feedback, anonyme, fingerprint SHA256
- CORS : autorisation radarsargasses971.com + localhost dev

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gwadaking
2026-04-01 02:50:06 -04:00
parent bf64340525
commit 4af5e62465
7 changed files with 289 additions and 13 deletions

View File

@@ -56,9 +56,13 @@
### API Backend
- [ ] `GET /api/spots` — liste CoastalPoints
- [ ] `GET /api/spots/{id}` — détail
- [ ] `GET /api/observations?bbox=&date=` — observations par zone
- [x] `GET /api/spots` — liste CoastalPoints (API Platform)
- [x] `GET /api/spots/{id}` — détail (API Platform)
- [x] `GET /api/spots/{id}/score` — score + niveau + trend
- [x] `GET /api/observations?bbox=&date=&source=` — PostGIS ST_Intersects
- [x] `GET /api/observations/{id}` — détail avec geometry GeoJSON
- [x] `GET /api/forecasts` — API Platform
- [x] `POST /api/feedback` — feedback anonyme (IP hachée)
### Frontend React