Skip to content

Commit b44f754

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 dfb7090 commit b44f754

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/scala/algoliasearch/api/SearchClient.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,16 +928,20 @@ class SearchClient(
928928
*
929929
* @param indexName
930930
* Name of the index on which to perform the operation.
931+
* @param getVersion
932+
* When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward
933+
* compatibility.
931934
*/
932-
def getSettings(indexName: String, requestOptions: Option[RequestOptions] = None)(implicit
933-
ec: ExecutionContext
935+
def getSettings(indexName: String, getVersion: Option[Int] = None, requestOptions: Option[RequestOptions] = None)(
936+
implicit ec: ExecutionContext
934937
): Future[SettingsResponse] = Future {
935938
requireNotNull(indexName, "Parameter `indexName` is required when calling `getSettings`.")
936939

937940
val request = HttpRequest
938941
.builder()
939942
.withMethod("GET")
940943
.withPath(s"/1/indexes/${escape(indexName)}/settings")
944+
.withQueryParameter("getVersion", getVersion)
941945
.build()
942946
execute[SettingsResponse](request, requestOptions)
943947
}

0 commit comments

Comments
 (0)