public function getUrl()
    {
        $this->validateMethod();

        $endpoint = DmmUrlManipulator::forceSlashPrefix($this->getEndpoint());

        $url = $endpoint;

        if ($this->getMethod() !== 'POST') {
            $params = $this->getParams();
            $url = DmmUrlManipulator::appendParamsToUrl($url, $params);
        }

        return $url;
    }