dart_strapi 0.0.3

Dart native js
Flutter Android iOS web

http client for strapi, you can access your models by name or the custom ones using the http client.

dart_strapi #

Usage #

A simple usage example:

import 'package:dart_strapi/dart_strapi.dart';

void main() async {
  final strapiClient = Strapi.newClient();
  strapiClient.initialize(token: 'token');

  final records = await strapiClient.find('record', queryParameters: {
    'amount_gt': 90,
  });

  final list = records.map((e) => e.toMap()).toList();

  print('$list');

  // using client directly - any other endpoint
  final json = await strapiClient.http.get('/lines/count');
  print('list#: $json');
}
6
likes
100
pub points
61%
popularity

Publisher

xantiagoma.com

http client for strapi, you can access your models by name or the custom ones using the http client.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio

More

Packages that depend on dart_strapi