/// <summary> /// List dictionaries List the dictionaries. /// </summary> /// <param name="Filters">Different filters that can be applied to the list functionality (skip/limit/sort/match)</param> /// <returns>DictionariesListResponse</returns> public async Task<DictionariesListResponse> ResourcesDictionaryListPostAsync (DictionariesListFilters Filters) { var path = "/resources/dictionary/list"; path = path.Replace("{format}", "json"); var queryParams = new Dictionary<String, String>(); var headerParams = new Dictionary<String, String>(); var formParams = new Dictionary<String, String>(); var fileParams = new Dictionary<String, String>(); String postBody = null; postBody = apiClient.Serialize(Filters); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { "accessToken", "apiKey" }; // make the HTTP request IRestResponse response = (IRestResponse) await apiClient.CallApiAsync(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if (((int)response.StatusCode) >= 400) { throw new ApiException ((int)response.StatusCode, "Error calling ResourcesDictionaryListPost: " + response.Content, response.Content); } return (DictionariesListResponse) apiClient.Deserialize(response.Content, typeof(DictionariesListResponse)); }
public void ResourcesDictionaryListPostTest() { DictionariesListFilters dictionariesListFilters = new DictionariesListFilters(); DictionariesListResponse dictionariesListResponse = new DictionariesListResponse(); dictionariesListResponse = dictionaryApi.ResourcesDictionaryListPost(dictionariesListFilters); Assert.IsNotNull(dictionariesListResponse.Dictionaries); }