jaguar-generator

Generates RequestHandler for a given Api class.

Usage

Api class

lib/api.dart:

import 'package:jaguar/jaguar.dart';

part 'api.g.dart';

/// Example of basic API class
@Api(path: '/api')
class MotherGroup extends _$JaguarMotherGroup {
  /// Example of basic route
  @Route(path: '/ping')
  String ping(Context ctx) => "You pinged me!";
}

build.yaml settings


Libraries

builder
constants
jaguar.generator.exceptions
jaguar.generator.hook.route_group
jaguar.generator.parser.route
jaguar_generator.common.validator
jaguar_generator.models
jaguar_generator.toModels
jaguar_generator.validator
jaguar_generator.writer