public async Task <string> GetApiDataAsync(string relativeUri) { if (!IsRepositorySet()) { throw new InvalidOperationException("active repository has not been set"); } if (relativeUri.StartsWith(@"/")) { relativeUri = relativeUri.TrimStart('/'); } var uriWithRepository = String.Format("/repositories/{0}/{1}", ActiveRepository.Id, relativeUri); return(await _connectionHandler.GetAsync(uriWithRepository)); }