private static HttpRequestMessage SubmitRequest(ApiModel apiModel, string operationName, IDictionary<ParamType, IDictionary<string, string>> arguments, JToken bodyObject, bool urlEncodeSpecialCharacters = false) { IDictionary<string, string> urlArguments = GetMap(ParamType.Url, arguments); IDictionary<string, string> queryArguments = GetMap(ParamType.Query, arguments); IDictionary<string, string> headerArguments = GetMap(ParamType.Header, arguments); IDictionary<string, string> authArguments = GetMap(ParamType.Auth, arguments); return apiModel.CreateRequest(operationName, urlArguments, queryArguments, bodyObject, headerArguments, authArguments, urlEncodeSpecialCharacters); }
private static HttpRequestMessage SubmitRequest(ApiModel apiModel, string operationName, IDictionary<ParamType, IDictionary<string, string>> arguments, bool urlEncodeSpecialCharacters = false) { IDictionary<string, string> bodyArguments = GetMap(ParamType.Body, arguments); JObject bodyObject = JObject.Parse(JsonConvert.SerializeObject(bodyArguments)); return SubmitRequest(apiModel, operationName, arguments, bodyObject, urlEncodeSpecialCharacters); }