public static function factory($path, $httpMethod = HttpMethods::GET, $handlerMethod = null) { return new ApiEndpoint($path, $httpMethod, $handlerMethod); }