private static Dictionary <string, ApiQueryParameters> CreateCommonApiQueryParameters(string jsonFile)
        {
            var json             = File.ReadAllText(jsonFile);
            var jobject          = JObject.Parse(json);
            var commonParameters = jobject.Property("params").Value.ToObject <Dictionary <string, ApiQueryParameters> >();

            return(ApiQueryParametersPatcher.Patch(null, commonParameters, null, checkCommon: false));
        }
Esempio n. 2
0
        private static void PatchRequestParameters(ApiEndpoint endpoint)
        {
            var newParams = ApiQueryParametersPatcher.Patch(endpoint.Name, endpoint.Url.Params, endpoint.Overrides);

            endpoint.Url.Params = newParams;
        }