Beispiel #1
0
        private RestRequest CreateRestRequest(RestUrlKeys restUrlKeys, RestParameters urlParameters,
                                              RestParameters pathVariables, RestParameters bodyParameters)
        {
            CheckImplementation(restUrlKeys);
            string      url     = PrepareUrlParameters(restUrl.ReadBaseUrl() + restUrl.GetUrl(restUrlKeys), urlParameters);
            RestRequest request = new RestRequest(url, dictionaryMethods[restUrlKeys]);

            request = PreparePathVariables(request, pathVariables);
            request = prepareRequestBody(request, bodyParameters);
            return(request);
        }
Beispiel #2
0
 public RestCrud(RestUrl restUrl)
 {
     this.restUrl = restUrl;
     client       = new RestClient(restUrl.ReadBaseUrl());
     InitDictionaryMethods();
 }