@@ -266,15 +266,15 @@ public class ApiClient {
266
266
*
267
267
* @param path The sub-path of the HTTP URL
268
268
* @param method The request method, one of " GET" , " HEAD" , " OPTIONS" , " POST" , " PUT" , " PATCH" and " DELETE"
269
- * @param queryParams The query parameters
269
+ * @param queryParameters The query parameters
270
270
* @param body The request body object
271
271
* @param headerParams The header parameters
272
272
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
273
273
* @return The HTTP call
274
274
* @throws AlgoliaRuntimeException If fail to serialize the request body object
275
275
*/
276
- public Call buildCall(String path, String method, Map<String, String> queryParams , Object body, Map<String, String> headerParams, RequestOptions requestOptions) throws AlgoliaRuntimeException {
277
- Request request = buildRequest(path, method, queryParams , body, headerParams, requestOptions);
276
+ public Call buildCall(String path, String method, Map<String, String> queryParameters , Object body, Map<String, String> headerParams, RequestOptions requestOptions) throws AlgoliaRuntimeException {
277
+ Request request = buildRequest(path, method, queryParameters , body, headerParams, requestOptions);
278
278
279
279
return requester.newCall(request);
280
280
}
@@ -284,19 +284,19 @@ public class ApiClient {
284
284
*
285
285
* @param path The sub-path of the HTTP URL
286
286
* @param method The request method, one of " GET" , " HEAD" , " OPTIONS" , " POST" , " PUT" , " PATCH" and " DELETE"
287
- * @param queryParams The query parameters
287
+ * @param queryParameters The query parameters
288
288
* @param body The request body object
289
289
* @param headerParams The header parameters
290
290
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
291
291
* @return The HTTP request
292
292
* @throws AlgoliaRuntimeException If fail to serialize the request body object
293
293
*/
294
- public Request buildRequest(String path, String method, Map<String, String> queryParams , Object body, Map<String, String> headerParams, RequestOptions requestOptions) throws AlgoliaRuntimeException {
294
+ public Request buildRequest(String path, String method, Map<String, String> queryParameters , Object body, Map<String, String> headerParams, RequestOptions requestOptions) throws AlgoliaRuntimeException {
295
295
boolean hasRequestOptions = requestOptions != null;
296
296
final String url = buildUrl(
297
297
path,
298
- queryParams ,
299
- hasRequestOptions ? requestOptions.getExtraQueryParams () : null
298
+ queryParameters ,
299
+ hasRequestOptions ? requestOptions.getExtraQueryParameters () : null
300
300
);
301
301
final Request.Builder reqBuilder = new Request.Builder().url(url);
302
302
processHeaderParams(
@@ -327,18 +327,18 @@ public class ApiClient {
327
327
* Build full URL by concatenating base path, the given sub path and query parameters.
328
328
*
329
329
* @param path The sub path
330
- * @param queryParams The query parameters
331
- * @param extraQueryParams The query parameters, coming from the requestOptions
330
+ * @param queryParameters The query parameters
331
+ * @param extraQueryParameters The query parameters, coming from the requestOptions
332
332
* @return The full URL
333
333
*/
334
- public String buildUrl(String path, Map<String, String> queryParams , Map<String, String> extraQueryParams ) {
334
+ public String buildUrl(String path, Map<String, String> queryParameters , Map<String, String> extraQueryParameters ) {
335
335
StringBuilder url = new StringBuilder();
336
336
337
337
//The real host will be assigned by the retry strategy
338
338
url.append(" http://temp.path" ).append(path);
339
339
340
- url = parseQueryParameters(path, url, queryParams );
341
- url = parseQueryParameters(path, url, extraQueryParams );
340
+ url = parseQueryParameters(path, url, queryParameters );
341
+ url = parseQueryParameters(path, url, extraQueryParameters );
342
342
343
343
return url.toString();
344
344
}
@@ -347,19 +347,19 @@ public class ApiClient {
347
347
* Parses the given map of Query Parameters to a given URL.
348
348
*
349
349
* @param path The sub path
350
- * @param url The url to add queryParams to
351
- * @param queryParams The query parameters
350
+ * @param url The url to add queryParameters to
351
+ * @param queryParameters The query parameters
352
352
* @return The URL
353
353
*/
354
354
public StringBuilder parseQueryParameters(
355
355
String path,
356
356
StringBuilder url,
357
- Map<String, String> queryParams
357
+ Map<String, String> queryParameters
358
358
) {
359
- if (queryParams != null && !queryParams .isEmpty()) {
359
+ if (queryParameters != null && !queryParameters .isEmpty()) {
360
360
// support (constant) query string in `path`, e.g. " /posts?draft= 1"
361
361
String prefix = path.contains(" ?" ) ? " &" : " ?" ;
362
- for (Entry<String, String> param : queryParams .entrySet()) {
362
+ for (Entry<String, String> param : queryParameters .entrySet()) {
363
363
if (param.getValue() != null) {
364
364
if (prefix != null) {
365
365
url.append(prefix);
0 commit comments