jaguar_generator 2.4.2 copy "jaguar_generator: ^2.4.2" to clipboard
jaguar_generator: ^2.4.2 copied to clipboard

outdated

Generator for Jaguar

example/lib/example.dart

import 'package:jaguar/jaguar.dart';

part 'example.jroutes.dart';

@GenController(path: "/simple")
class SimpleApi extends Controller with _$SimpleApi {
  @Get()
  String get(_) => "simple";

  @IncludeController(path: '/include')
  final include = IncludeApi();
}

@GenController(path: "/include")
class IncludeApi extends Controller with _$IncludeApi {
  @HttpMethod(methods: ['UP'], statusCode: 201)
  Future<List<int>> upIt(_) async => [1, 2, 3];
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Generator for Jaguar

Homepage

License

unknown (license)

Dependencies

analyzer, build, jaguar, logging, meta, source_gen

More

Packages that depend on jaguar_generator