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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user