jaguar_resty 3.0.0 copy "jaguar_resty: ^3.0.0" to clipboard
jaguar_resty: ^3.0.0 copied to clipboard

Build fluent functional REST clients. Supports interceptors, cookies, multipart forms and authenticators.

example/example.dart

import 'package:jaguar_resty/jaguar_resty.dart';

class Book {
  String id;

  String name;

  Book(this.id, this.name);

  Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
      };
}

Future<void> main() async {
  String id = '5';
  await get('http://localhost:8080/api/book/${id}').go();
  await get('http://localhost:8080/api').path('book').path(id).go();
  await get('/books').query('page', '2').go();
  await get('/book').header('page', '2').go();
  await post('/book').json(Book('1', 'Harry potter')).readOne();
}
0
likes
110
pub points
32%
popularity

Publisher

unverified uploader

Build fluent functional REST clients. Supports interceptors, cookies, multipart forms and authenticators.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, auth_header, client_cookie, collection, http, http_parser, meta, path

More

Packages that depend on jaguar_resty