RobleApiConfig class
Configuración del cliente Roble.
Se crea siempre con RobleApiConfig.fromContract, que compone las rutas
/auth y /database a partir del host y del identificador del contrato:
final config = RobleApiConfig.fromContract(
baseUrl: 'https://roble-api.test-openlab.uninorte.edu.co',
contractId: 'tu_contrato',
);
Constructors
- RobleApiConfig.fromContract({required String baseUrl, required String contractId, String? realtimeBaseUrl, Duration timeout = defaultTimeout})
-
Crea la configuración a partir del host y del identificador del contrato.
factory
Properties
- authUrl → String
-
URL base para endpoints de autenticación (login, signup, refresh, etc.).
final
- dataUrl → String
-
URL base para endpoints de datos (CRUD, tablas, etc.).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- realtimeUrl → String
-
URL base del servicio Realtime (
{host}/realtime/{contractId}).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Tiempo máximo de espera por petición. Por defecto 30 segundos.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultTimeout → const Duration
- Timeout usado cuando no se especifica ninguno.