public async Task <IEnumerable <GitlabBranch> > GetBranchesOfProject(string projectId) { var url = $"https://{_domainName}/api/v4/projects/{projectId}/repository/branches"; var request = new HttpRequestMessage(HttpMethod.Get, url); request.Headers.Add("PRIVATE-TOKEN", _personalAccessToken); using var response = await _client.SendAsync(request); var json = await response.Content.ReadAsStringAsync(); return(_jsonConverter.ConvertJsonToBranches(json)); }