docs: def get_branches(self, project, repository, base=None, filter=None, start=0, limit=99999, details=True,
                       order_by='MODIFICATION'):
          """
          Retrieve the branches matching the supplied filterText param.
          The authenticated user must have REPO_READ permission for the specified repository to call this resource.
          :param start:
          :param project:
          :param repository:
          :param base: base branch/tag to compare each branch to (for the metadata providers that uses that information)
          :param filter:
          :param limit: OPTIONAL: The limit of the number of branches to return, this may be restricted by
                      fixed system limits. Default by built-in method: 99999
          :param details: whether to retrieve plugin-provided metadata about each branch
          :param order_by: OPTIONAL: ordering of refs either ALPHABETICAL (by name) or MODIFICATION (last updated)
          :return:
          """
          url = 'rest/api/1.0/projects/{project}/repos/{repository}/branches'.format(project=project,
                                                                                     repository=repository)
          params = {}
          if start:
              params['start'] = start
          if limit:
              params['limit'] = limit
          if filter:
              params['filterText'] = filter
          if base:
              params['base'] = base
          if order_by:
              params['orderBy'] = order_by
          params['details'] = details
  
          return (self.get(url, params=params) or {}).get('values')