public function doingRestAction(string $action = null): string
    {
        if (isset($action)) {
            $this->doing_rest_action = $action;
            $this->doingAction($action, true);
        }
        return (string) $this->doing_rest_action;
    }