jaguar_client 2.1.5 icon indicating copy to clipboard operation
jaguar_client: ^2.1.5 copied to clipboard

outdated

Write concise JSON API clients. Uses jaguar_serializer for automatic serialization. Supports cookies, interceptors and authentication.

jaguar_client #

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 access DataStore or a resource
  • SerializedJsonClient enables writing concise REST calls
  • Persistent Cookies on Flutter and IO

Usage #

Basic requests #

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);

Automatic serialization #

TODO

Authentication #

TODO

Session management #

TODO

TODO #

-[ ] Persist cookie
-[ ] Persist auth header?

1
likes
0
pub points
31%
popularity

Publisher

unverified uploader

Write concise JSON API clients. Uses jaguar_serializer for automatic serialization. Supports cookies, interceptors and authentication.

Repository (GitHub)
View/report issues

License

Icon for licenses.unknown (LICENSE)

Dependencies

async, auth_header, client_cookie, http, jaguar_common, jaguar_resty, jaguar_serializer

More

Packages that depend on jaguar_client