Concise JSON client library for Dart and Jaguar based on package:http
- Built-in PODO serialization using
jaguar_serializer
- Simple and intuitive API
- Various authentication support
- JSON authentication
- url-encoded-form authentication
- Basic authentication
- Planned
- Facebook oauth
- Google oauth
- Google 2FA
- Session management
- Browser: LocalStorage
- Flutter: SharedPreferences
- IO: DB, File
- JWT authentication support
ResourceClient
to accessDataStore
or a resourceSerializedJsonClient
enables writing concise REST calls- Persistent Cookies on Flutter and IO
GET request:
final JsonResponse resp =
await client.get('http://localhost:8080/api/list');
print(resp.body);
POST request:
final JsonResponse resp = await client
.post('http://localhost:8080/api/map', body: {'posting': 'hello'});
print(resp.body);
TODO
TODO
TODO
-[ ] Persist cookie
-[ ] Persist auth header?