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

@param string $path
@param string $httpMethod
@param string $handlerMethod

@return static
Returns endpoint with default values