Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/algonauti/flutter-rest-data
Easily persist on device REST data from your backend
https://github.com/algonauti/flutter-rest-data
Last synced: about 1 month ago
JSON representation
Easily persist on device REST data from your backend
- Host: GitHub
- URL: https://github.com/algonauti/flutter-rest-data
- Owner: algonauti
- License: other
- Created: 2020-03-19T23:54:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-18T12:37:08.000Z (about 3 years ago)
- Last Synced: 2024-04-09T14:48:21.759Z (9 months ago)
- Language: Dart
- Size: 123 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_rest_data
This package is built on top of [rest_data](https://github.com/algonauti/dart-rest-data). It uses [sembast](https://github.com/tekartik/sembast.dart) to store on local device all data coming from your REST backend.
[![CI](https://github.com/algonauti/flutter-rest-data/workflows/CI/badge.svg)](https://github.com/algonauti/flutter-rest-data/actions)
## Introduction
It provides your app with a REST Adapter which behaves as follows - see [rest_data](https://github.com/algonauti/dart-rest-data)'s Readme to learn what an Adapter is in these packages 😉
* While device is online, it just stores on local device all REST data coming from the backend.
* When device is offline:
* it returns data from local device on read operations
* it stores added, updated and deleted records on local device
* When device gets back online (TODO):
* it processes added, updated and deleted queues by sending the appropriate requests to the REST backend.## To be continued...