apiReflection method
Adds routes from a reflection, one for each API method in the reflected class.
See ClassReflectionExtension.apiMethods.
requestMethodthe route request method.
Implementation
bool apiReflection(
ClassReflection reflection, [
APIRequestMethod? requestMethod,
]) {
var methods = reflection.apiMethods();
return apiMethods(methods, requestMethod);
}