private string GetReportProjectUrl(string projectUrl) { string baseUrl = RestConnection.GetBaseUrl(); string projectId = new UrlHelper().GetFirstId(projectUrl); string url = $"{baseUrl}/#projects/id:{projectId}"; return(url); }
private string GetReportVersionUrl(string versionUrl, bool isComponent) { string baseUrl = RestConnection.GetBaseUrl(); string versionId = new UrlHelper().GetLastId(versionUrl); string url = $"{baseUrl}/#versions/id:{versionId}"; if (!isComponent) { url += "/view:bom"; } return(url); }
public Uri BuildUri() { if (Uri == null) { Uri = RestConnection.CreateURI(RestConnection.GetBaseUrl(), Path, QueryParameters); } else { Uri = RestConnection.CreateURI(Uri, QueryParameters); } return(Uri); }