Skip to content

Commit 4c3172a

Browse files
algolia-botmillotp
andcommitted
fix(specs): add getVersion parameter to getSettings (generated)
algolia/api-clients-automation#5254 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent b892356 commit 4c3172a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/client_search/lib/src/api/search_client.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,9 +1168,11 @@ final class SearchClient implements ApiClient {
11681168
///
11691169
/// Parameters:
11701170
/// * [indexName] Name of the index on which to perform the operation.
1171+
/// * [getVersion] When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
11711172
/// * [requestOptions] additional request configuration.
11721173
Future<SettingsResponse> getSettings({
11731174
required String indexName,
1175+
int? getVersion,
11741176
RequestOptions? requestOptions,
11751177
}) async {
11761178
assert(
@@ -1181,6 +1183,9 @@ final class SearchClient implements ApiClient {
11811183
method: RequestMethod.get,
11821184
path: r'/1/indexes/{indexName}/settings'.replaceAll(
11831185
'{' r'indexName' '}', Uri.encodeComponent(indexName.toString())),
1186+
queryParams: {
1187+
if (getVersion != null) 'getVersion': getVersion,
1188+
},
11841189
);
11851190
final response = await _retryStrategy.execute(
11861191
request: request,

0 commit comments

Comments
 (0)