dart_strapi 0.0.3 copy "dart_strapi: ^0.0.3" to clipboard
dart_strapi: ^0.0.3 copied to clipboard

outdated

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');
}
25
likes
40
points
83
downloads

Publisher

verified publisherxantiagoma.com

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio

More

Packages that depend on dart_strapi