Bug fixes of training
This commit is contained in:
21
services/external/README.md
vendored
21
services/external/README.md
vendored
@@ -100,14 +100,19 @@ The **External Service** integrates real-world data from Spanish sources to enha
|
||||
## API Endpoints (Key Routes)
|
||||
|
||||
### POI Detection & Context
|
||||
- `POST /poi-context/{tenant_id}/detect` - Detect POIs for tenant location (lat, long, force_refresh params)
|
||||
- `GET /poi-context/{tenant_id}` - Get cached POI context for tenant
|
||||
- `POST /poi-context/{tenant_id}/refresh` - Force refresh POI detection
|
||||
- `DELETE /poi-context/{tenant_id}` - Delete POI context for tenant
|
||||
- `GET /poi-context/{tenant_id}/feature-importance` - Get POI feature importance summary
|
||||
- `GET /poi-context/{tenant_id}/competitor-analysis` - Get competitive analysis
|
||||
- `GET /poi-context/health` - Check POI service and Overpass API health
|
||||
- `GET /poi-context/cache/stats` - Get POI cache statistics
|
||||
- `POST /api/v1/tenants/{tenant_id}/poi-context/detect` - Detect POIs for tenant location (lat, long, force_refresh params) - Direct access (bypasses gateway authentication)
|
||||
- `GET /api/v1/tenants/{tenant_id}/poi-context` - Get cached POI context for tenant - Direct access (bypasses gateway authentication)
|
||||
- `POST /api/v1/tenants/{tenant_id}/poi-context/refresh` - Force refresh POI detection - Direct access (bypasses gateway authentication)
|
||||
- `DELETE /api/v1/tenants/{tenant_id}/poi-context` - Delete POI context for tenant - Direct access (bypasses gateway authentication)
|
||||
- `GET /api/v1/tenants/{tenant_id}/poi-context/feature-importance` - Get POI feature importance summary - Direct access (bypasses gateway authentication)
|
||||
- `GET /api/v1/tenants/{tenant_id}/poi-context/competitor-analysis` - Get competitive analysis - Direct access (bypasses gateway authentication)
|
||||
- `GET /api/v1/tenants/poi-context/health` - Check POI service and Overpass API health - Direct access (bypasses gateway authentication)
|
||||
- `GET /api/v1/tenants/poi-context/cache/stats` - Get POI cache statistics - Direct access (bypasses gateway authentication)
|
||||
|
||||
### Recommended Access Pattern:
|
||||
- Services should use `/api/v1/tenants/{tenant_id}/external/poi-context` (detected POIs) and `/api/v1/tenants/{tenant_id}/external/poi-context/detect` (detection) via shared ExternalServiceClient through the API gateway for proper authentication and authorization.
|
||||
|
||||
**Note**: When using ExternalServiceClient through shared client, provide relative paths like `poi-context` and `poi-context/detect` - the client automatically constructs the full tenant-scoped path.
|
||||
|
||||
### Weather Data (AEMET)
|
||||
- `GET /api/v1/external/weather/current` - Current weather for location
|
||||
|
||||
Reference in New Issue
Block a user