json_api 0.0.1-dev5 copy "json_api: ^0.0.1-dev5" to clipboard
json_api: ^0.0.1-dev5 copied to clipboard

outdated

JSON:API v1.0 (http://jsonapi.org) HTTP Client for Flutter, Server and Browsers

example/example.dart

import 'package:json_api/json_api.dart';
import 'package:json_api_document/json_api_document.dart';

/// This is a simple example of JsonApiClient.
///
/// Do not forget to start server.dart first!
void main() async {
  final client = JsonApiClient(baseUrl: 'http://localhost:8888');
  final response = await client.fetchResource('/example');
  print((response.document as DataDocument).data.resources.first.attributes);
}
34
likes
0
pub points
80%
popularity

Publisher

verified publisherkarapetov.com

JSON:API v1.0 (http://jsonapi.org) HTTP Client for Flutter, Server and Browsers

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, json_api_document

More

Packages that depend on json_api