ApiController constructor

ApiController({
  1. required FinchApp app,
  2. required String title,
  3. String security = 'apiKey',
})

Constructs a ApiController with the given request rq, router, title, and optional security scheme.

The title parameter is required and sets the API title. The security parameter defaults to 'apiKey'. app is the FinchApp instance containing the routes.

Implementation

ApiController({
  required this.app,
  required this.title,
  this.security = 'apiKey',
});