rest_simplified

Last updated:

0 purchases

rest_simplified Image
rest_simplified Images
Add to Cart

Description:

rest simplified

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);
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.