apiReflection method

bool apiReflection(
  1. ClassReflection reflection, [
  2. APIRequestMethod? requestMethod
])

Adds routes from a reflection, one for each API method in the reflected class. See ClassReflectionExtension.apiMethods.

  • requestMethod the route request method.

Implementation

bool apiReflection(ClassReflection reflection,
    [APIRequestMethod? requestMethod]) {
  var methods = reflection.apiMethods();
  return apiMethods(methods, requestMethod);
}