jaguar_reflect 2.4.6

Dart native

Logic to reflect Jaguar Controllers into Jaguar routes. Also provides reflection support for Jaguar Bingings

jaguar_reflect #

Uses reflection instead of source generation to serve Jaguar Api classes.

Usage #

A simple usage example:

final book = new Book.make('0', 'Book1', ['Author1', 'Author2']);

@Api(path: '/api/book')
class BooksApi {
  @Get()
  Response<String> addBook(Context ctx) => Response.json(book.toMap());
}

Future<Null> main(List<String> args) async {
  final jaguar = new Jaguar(port: 8005);
  jaguar.addApi(reflect(new BooksApi()));
  await jaguar.serve();
}
0
likes
80
pub points
57%
popularity

Logic to reflect Jaguar Controllers into Jaguar routes. Also provides reflection support for Jaguar Bingings

Homepage

Documentation

API reference

Uploader

tejainece@gmail.com

License

BSD (LICENSE)

Dependencies

jaguar, meta

More

Packages that depend on jaguar_reflect