http_api_generator 1.1.2 http_api_generator: ^1.1.2 copied to clipboard
A package that help you to generate Http Restful Api by annotation.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add http_api_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
http_api_generator: ^1.1.2
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:http_api_generator/annotation/api.dart';
import 'package:http_api_generator/annotation/method.dart';
import 'package:http_api_generator/annotation/param.dart';
import 'package:http_api_generator/entity/http_api_info.dart';
import 'package:http_api_generator/generator/builder.dart';
import 'package:http_api_generator/generator/generator.dart';
import 'package:http_api_generator/http_api.dart';