jsonapi_client 0.0.1 copy "jsonapi_client: ^0.0.1" to clipboard
jsonapi_client: ^0.0.1 copied to clipboard

outdatedDart 1 only

Qurami JSON API Client

CircleCI

JSON API Client in Dartlang #

Dartlang implementation of JSON API Client, adherent to JSON API specification 1.0.

Installation #

Add jsonapi_client to your pubspec.yaml:

dependencies:
  jsonapi_client: "0.0.1"

Usage #

Instantiate a client:

JSONAPIClient c = new JSONAPIClient();

then use it:

try {
  JSONAPIDocument d = await c.get(
      'http://api.url/aModel/1',
      includeModels:['anotherModel']);
} catch (err) {
  // the API did not return a valid JSON API Document
}

GET method #

Used to retrieve a document containing a JSON API resource or a list of resources.

Future<JSONAPIDocument> get(String url, {List<String> includeModels, Map headers})

POST method #

Used to create a document containing a JSON API resource.

Future<JSONAPIDocument> post(String url, String document, {List<String> includeModels, Map headers})

DELETE method #

Used to delete a resource.

Future delete(String url, {Map headers})

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Qurami JSON API Client

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, test

More

Packages that depend on jsonapi_client