jaguar_retrofit_gen 2.8.6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 78

jaguar_http_cli #

An Http Api generator inspired by Retrofit for Dart

Install #

pub global activate jaguar_http_cli

Usage #

A simple usage example:

pubspec.yaml #

jaguar_http:
  - example/example.dart

example.yaml #

library example;

part 'example.g.dart';

/// definition
@JaguarHttp(name: "Api")
abstract class ApiDefinition extends JaguarInterceptors {
  @Get("/users/:id")
  Future<JaguarResponse<User>> getUserById(@Param() String id);

  @Post("/users")
  Future<JaguarResponse<User>> postUser(@Body() User user);

  @Put("/users/:uid")
  Future<JaguarResponse<User>> updateUser(@Param(name: "uid") String userId, @Body() User user);

  @Delete("/users/:id")
  Future<JaguarResponse> deleteUser(@Param() String id);
}

run #

jaguar_http build

use it #

final api = new Api(new IOClient(), "http://localhost:9000", serializers: repo);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

2.6.4 #

  • Implemented AsBodyString annotation

2.5.2 #

  • PathParam alias bug fix

2.2.2 #

  • Added AsForm, AsFormField

2.2.1 #

Breaking changes #

  • Change extension to .jretro.dart

Use this package as a library

1. Depend on it

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


dependencies:
  jaguar_retrofit_gen: ^2.8.6

2. Install it

You can install packages from the command line:

with pub:


$ 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:jaguar_retrofit_gen/jaguar_retrofit_gen.dart';
  
Version Uploaded Documentation Archive
2.8.6 Jan 14, 2019 Go to the documentation of jaguar_retrofit_gen 2.8.6 Download jaguar_retrofit_gen 2.8.6 archive
2.8.5 Jan 9, 2019 Go to the documentation of jaguar_retrofit_gen 2.8.5 Download jaguar_retrofit_gen 2.8.5 archive
2.8.2 Jan 1, 2019 Go to the documentation of jaguar_retrofit_gen 2.8.2 Download jaguar_retrofit_gen 2.8.2 archive
2.8.1 Jan 1, 2019 Go to the documentation of jaguar_retrofit_gen 2.8.1 Download jaguar_retrofit_gen 2.8.1 archive
2.6.4 Dec 28, 2018 Go to the documentation of jaguar_retrofit_gen 2.6.4 Download jaguar_retrofit_gen 2.6.4 archive
2.6.2 Dec 27, 2018 Go to the documentation of jaguar_retrofit_gen 2.6.2 Download jaguar_retrofit_gen 2.6.2 archive
2.6.1 Dec 11, 2018 Go to the documentation of jaguar_retrofit_gen 2.6.1 Download jaguar_retrofit_gen 2.6.1 archive
2.5.10 Nov 12, 2018 Go to the documentation of jaguar_retrofit_gen 2.5.10 Download jaguar_retrofit_gen 2.5.10 archive
2.5.9 Nov 12, 2018 Go to the documentation of jaguar_retrofit_gen 2.5.9 Download jaguar_retrofit_gen 2.5.9 archive
2.5.8 Nov 6, 2018 Go to the documentation of jaguar_retrofit_gen 2.5.8 Download jaguar_retrofit_gen 2.5.8 archive

All 20 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
60
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
78
Learn more about scoring.

We analyzed this package on Apr 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: other

Primary library: package:jaguar_retrofit_gen/jaguar_retrofit_gen.dart with components: io, build, mirrors.

Health issues and suggestions

Document public APIs. (-0.48 points)

111 out of 113 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/parsed_info/parsed_info.dart. (-0.50 points)

Analysis of lib/parsed_info/parsed_info.dart reported 1 hint:

line 26 col 43: Use = to separate a named parameter from its default value.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and jaguar_retrofit_gen.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.65 <3.0.0
analyzer ^0.34.0 0.34.3 0.36.0
build ^1.0.0 1.1.0 1.1.3
jaguar_resty ^2.10.8 2.10.12
jaguar_retrofit ^2.8.1 2.8.6
logging ^0.11.0 0.11.3+2
meta ^1.1.5 1.1.7
source_gen ^0.9.0 0.9.4+1 0.9.4+2
Transitive dependencies
args 1.5.1
async 2.2.0
auth_header 2.1.2
charcode 1.1.2
client_cookie 2.2.1
convert 2.1.1
crypto 2.0.6
csslib 0.15.0
dart_style 1.2.3 1.2.7
front_end 0.1.9+1 0.1.15
glob 1.1.7
html 0.14.0+1
http 0.12.0+2
http_parser 3.1.3
jaguar_mimetype 1.0.1
jaguar_serializer 2.2.12
kernel 0.3.9+1 0.3.15
package_config 1.0.5
pedantic 1.5.0
plugin 0.2.0+3
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^1.0.0
collection ^1.14.10 1.14.11
path ^1.6.2 1.6.2
test ^1.3.0