ApiVersionSource class
Constructors
-
ApiVersionSource({String? baseUrl, String? apiKey, bool useNewApiFormat = true, Uri? legacyApiUrl})
-
Constructor for new API format
If
baseUrl is not provided, uses the default Relva API URL
-
ApiVersionSource.legacy({required Uri apiUrl, })
-
Constructor for legacy API format (backward compatibility)
Properties
-
Additional headers to include in the request
final
-
apiKey
→ String?
-
API Key for authentication
final
-
baseUrl
→ String
-
Base URL of the API (defaults to Relva API)
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
legacyApiUrl
→ Uri?
-
Legacy API URL (for backward compatibility)
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
useNewApiFormat
→ bool
-
Whether to use the new API endpoint format
final