APIRouteHandler<T> class abstract

A route handler, with its function and rules.

Implementers

Constructors

APIRouteHandler(APIModule module, APIRequestMethod? requestMethod, String routeName, Map<String, TypeInfo>? parameters, Iterable<APIRouteRule>? rules, APIRouteConfig? config)

Properties

config ↔ APIRouteConfig
getter/setter pair
entityAccessRules → EntityAccessRules
Returns the EntityAccessRules defined by APIEntityAccessRules annotations.
no setter
entityResolutionRules → EntityResolutionRules
Returns the EntityResolutionRules defined by APIEntityResolutionRules annotations.
no setter
hashCode → int
The hash code for this object.
no setterinherited
module → APIModule
final
parameters ↔ Map<String, TypeInfo>?
getter/setter pair
requestMethod → APIRequestMethod?
final
routeName → String
final
rules ↔ List<APIRouteRule>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apiInfo([APIRequest? apiRequest]) → APIRouteInfo
call(APIRequest request) → FutureOr<APIResponse<T>>
Calls this route.
callImpl(APIRequest request) → FutureOr<APIResponse<T>>
callResponse(APIResponse<T> response, DateTime initTime) → APIResponse<T>
checkRules(APIRequest request) → bool
Check the rules of this route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited