path property
String
get
path
Get the URL path for this endpoint.
Implementation
String get path {
switch (this) {
// Authentication & Health
case APIEndpoint.authenticate:
return '/api/v1/auth/sdk/authenticate';
case APIEndpoint.refreshToken:
return '/api/v1/auth/sdk/refresh';
case APIEndpoint.healthCheck:
return '/v1/health';
// Device Management - Production/Staging
case APIEndpoint.deviceRegistration:
return '/api/v1/devices/register';
case APIEndpoint.analytics:
return '/api/v1/analytics';
// Device Management - Development (Supabase REST API format)
case APIEndpoint.devDeviceRegistration:
return '/rest/v1/sdk_devices';
case APIEndpoint.devAnalytics:
return '/rest/v1/analytics_events';
// Telemetry - Production/Staging
case APIEndpoint.telemetry:
return '/api/v1/sdk/telemetry';
// Telemetry - Development (Supabase REST API format)
case APIEndpoint.devTelemetry:
return '/rest/v1/telemetry_events';
// Core endpoints
case APIEndpoint.models:
return '/api/v1/models';
case APIEndpoint.deviceInfo:
return '/api/v1/device';
case APIEndpoint.generationHistory:
return '/api/v1/history';
case APIEndpoint.userPreferences:
return '/api/v1/preferences';
case APIEndpoint.modelAssignments:
return '/api/v1/model-assignments/for-sdk';
// Development-specific (Supabase REST API format)
case APIEndpoint.devModelAssignments:
return '/rest/v1/sdk_model_assignments';
}
}