code: def url(self, url):
          
          if url and url.endswith('/'):
              url = url[:-1]
  
          self._url = url
docs: Set API URL endpoint
  
              Args:
                  url: the url of the API endpoint