teja_http_json 0.1.5 (latest: 0.1.5 / 0.1.6-dev )

teja_http_json

Write concise JSON API clients

Usage

Get request

final JsonResponse resp =
    await client.get('http://localhost:8080/api/list');
print(resp.body);

Post request

final JsonResponse resp = await client
    .post('http://localhost:8080/api/map', body: {'posting': 'hello'});
print(resp.body);

Put request

final JsonResponse resp = await client
    .put('http://localhost:8080/api/map', body: {'putting': 'hello'});
print(resp.body);

Delete request

final JsonResponse resp =
    await client.delete('http://localhost:8080/api/map/123?query=why');
print(resp.body);

Changelog

0.1.2

  • Serialize/Deserialize using jaguar_serializer

0.0.1

  • Initial version

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  teja_http_json: "^0.1.5"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:teja_http_json/teja_http_json.dart';

About

Write concise JSON API clients

Author

Email tejainece@gmail.com Ravi Teja Gudapati

Homepage

github.com/tejainece/teja_http_json

Documentation

www.dartdocs.org/documentation/teja_http_json/0.1.5/

Source code (hyperlinked)

www.crossdart.info/p/teja_http_json/0.1.5/

Uploader

tejainece@gmail.com

Published

Jul 9, 2017

Share