Example #1
0
        public string Search(IEnumerable <string> searchTerms, IEnumerable <string> facets = null)
        {
            var uriCommand = "/search/search?" +
                             ProcessParameter("searchTerms", " ", searchTerms) +
                             ProcessParameter("&facets", ",", facets) +
                             "&count=100&api-version=" + ApiVersion1;
            var result = new HttpHelpers().Execute(CatalogName, uriCommand, Token);

            return(result);
        }
Example #2
0
        public string Relationships(string fromAssetId = null, string toAssetId = null)
        {
            var uriCommand = "relationships/find/all?" +
                             ProcessParameters(new Dictionary <string, string> {
                { "fromAssetId", fromAssetId }, { "toAssetId", toAssetId }
            }) +
                             "&api-version=" + ApiVersionRelationships;
            var result = new HttpHelpers().Execute(CatalogName, uriCommand, Token);

            return(result);
        }