APIRouteHandler<T> class
Constructors
-
APIRouteHandler(APIModule module, APIRequestMethod? requestMethod, String routeName, APIRouteFunction<
T> function, 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
-
function
↔ APIRouteFunction<
T> -
getter/setter pair
- 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.
-
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