rest_simplified 0.0.17 copy "rest_simplified: ^0.0.17" to clipboard
rest_simplified: ^0.0.17 copied to clipboard

A Simplified Rest approach for Flutter. The concept of this package is to easily map json to bean and vice-versa.

Rest Simplified is a simple library to help accessing a REST Full backend.

The current version is experimental. Do not use it for production yet.

Example, used for test:

RestSimplified rs = RestSimplified.build('https://catfact.ninja');
rs.addFromJsonMapParser<CatFact>(CatFactJsonMapper());
rs.addPath<CatFact>(Protocol.get, '/fact');

ServiceResult result = await rs.getRestAccessor().get<CatFact>();
expect(result.httpCode, 200);

CatFact catFact = result.entity;

expect(catFact.fact!.length, catFact.length);
print(catFact.fact);
0
likes
130
pub points
0%
popularity

Publisher

verified publisherlapetina.fr

A Simplified Rest approach for Flutter. The concept of this package is to easily map json to bean and vice-versa.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on rest_simplified