Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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...