diff --git a/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java b/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java index 6a39b4c9..dfa51f0f 100644 --- a/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java +++ b/clients/java/src/test/java/com/phrase/client/api/LocalesApiTest.java @@ -251,7 +251,8 @@ public void localesListTest() throws ApiException, InterruptedException { Integer perPage = null; String sortBy = null; String branch = "MY_BRANCH"; - List response = api.localesList(projectId, xPhraseAppOTP, page, perPage, sortBy, branch); + String q = null; + List response = api.localesList(projectId, xPhraseAppOTP, page, perPage, sortBy, branch, q); Assert.assertEquals("Correct number of elements", response.size(), 3); Assert.assertEquals("Correct locale name", response.get(0).getName(), "de-DE"); diff --git a/doc/compiled.json b/doc/compiled.json index 9652d66d..f778ce6a 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -8355,6 +8355,15 @@ "schema": { "type": "string" } + }, + { + "description": "Specify a query to filter locales. Currently supports `name` argument, filtering only locales with names starting with the given string.", + "example": "name:en", + "name": "q", + "in": "query", + "schema": { + "type": "string" + } } ], "responses": { diff --git a/paths/locales/index.yaml b/paths/locales/index.yaml index 08554690..1430a9fc 100644 --- a/paths/locales/index.yaml +++ b/paths/locales/index.yaml @@ -21,6 +21,12 @@ parameters: in: query schema: type: string +- description: Specify a query to filter locales. Currently supports `name` argument, filtering only locales with names starting with the given string. + example: name:en + name: q + in: query + schema: + type: string responses: '200': description: OK