code: def endpoint(cls):
          
          endpoint = ''
          if cls.__endpoint__ is not None:
              return cls.__endpoint__
          elif cls.__from_class__ is not None:
              endpoint = cls.__from_class__.__name__.lower()
          else:
              endpoint = cls.__tablename__.lower()
          if not endpoint.endswith('s'):
              endpoint += 's'
          return endpoint
docs: Return the :class:`sandman.model.Model`'s endpoint.
  
          :rtype: string