WaApiController constructor
WaApiController(
- WebRequest rq, {
- required WaServer server,
- required String title,
- String security = 'apiKey',
Constructs a WaApiController with the given request rq
, router, title, and
optional security scheme.
The router
parameter is required and defines the API routes.
The title
parameter is required and sets the API title.
The security
parameter defaults to 'apiKey'
.
Implementation
WaApiController(
super.rq, {
required this.server,
required this.title,
this.security = 'apiKey',
});