public function getEndpoint()
    {
        if (is_null($this->endpoint)) {
            $this->endpoint = str_replace('\\', '', snake_case(str_plural(class_basename($this))));
        }

        return $this->endpoint;
    }