api_rest_flutter 2.0.0
api_rest_flutter: ^2.0.0 copied to clipboard
A Flutter package for mobile data management with online/offline CRUD operations, local storage, schema-driven validation, and data synchronization. Mobile only.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.0 2024 #
Added #
- Mobile data management layer for Flutter Android/iOS applications
- Online/offline dual mode operation with automatic fallback
- Local storage using ObjectBox for offline data persistence
- Bidirectional data synchronization (
downLoadInfoFromServer(),uploadInfoToServer()) - Full CRUD operations:
leeById(),guardar(),actualizar(),obtener(),cambiaEstado() - Schema-driven validation with
validaDataInMap()supporting multiple data types - MongoDB-style query support with
$and,$or,$regexoperators - OAuth-like session management with
autorizaSesion() - Dynamic value resolution for foreign key fields (
_dynamicValuesuffix) - Query building utilities with
tokenizaConcatenacion()for MongoDB aggregation pipelines - Pagination support for large datasets
Features #
ApiRestsingleton class for centralized data operationsUtilsDataApiRestutility class for data transformation and validation- Support for data types:
string,number,boolean,array,arrayObjects,object,jsonString - Validation types:
url,entero,decimal,correo,fecha,fechaHora,cuit,coleccion - Change tracking via
eTransferfield (D= pending upload, empty = synchronized) - Debug logging controlled by
enableDebugLogsparameter
Platform Support #
- Android: ✅
- iOS: ✅
- Web: ❌ (not supported)