Skip to content

Commit a7daaf4

Browse files
authored
docs(API): unmentioned_in multiple uploads works too #STRINGS-1379 (#778)
1 parent fff505b commit a7daaf4

File tree

9 files changed

+45
-63
lines changed

9 files changed

+45
-63
lines changed

doc/compiled.json

Lines changed: 16 additions & 19 deletions
Large diffs are not rendered by default.

parameters.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,25 @@ response_status_codes:
239239
required: false
240240
schema:
241241
type: string
242+
q:
243+
description: |
244+
Specify a query to do broad search for keys by name (including wildcards).<br><br>
245+
The following qualifiers are also supported in the search term:<br>
246+
<ul>
247+
<li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>
248+
<li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li>
249+
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
250+
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
251+
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
252+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
253+
</ul>
254+
<br/>
255+
<p><strong>Caution:</strong> Query parameters with empty values will be treated as though they are not included in the request and will be ignored.</p>
256+
<br/>
257+
Find more examples <a href="#overview--usage-examples">here</a>.
258+
example: mykey* translated:true
259+
name: q
260+
in: query
261+
schema:
262+
type: string
263+

paths/keys/destroy-collection.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,7 @@ parameters:
1313
in: query
1414
schema:
1515
type: string
16-
- description: |
17-
Specify a query to do broad search for keys by name (including wildcards).<br><br>
18-
The following qualifiers are also supported in the search term:<br>
19-
<ul>
20-
<li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>
21-
<li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li>
22-
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
23-
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
24-
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
25-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
26-
</ul>
27-
<br/>
28-
<p><strong>Caution:</strong> Query parameters with empty values will be treated as though they are not included in the request and will be ignored.</p>
29-
<br/>
30-
Find more examples <a href="#overview--usage-examples">here</a>.
31-
example: mykey* translated:true
32-
name: q
33-
in: query
34-
schema:
35-
type: string
16+
- "$ref": "../../parameters.yaml#/q"
3617
- description: Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
3718
example: abcd1234abcd1234abcd1234abcd1234
3819
name: locale_id

paths/keys/exclude.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ requestBody:
6363
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
6464
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
6565
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
66-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
66+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
6767
</ul>
6868
Find more examples <a href="#overview--usage-examples">here</a>.
6969
type: string

paths/keys/include.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ requestBody:
6363
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
6464
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
6565
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
66-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
66+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
6767
</ul>
6868
Find more examples <a href="#overview--usage-examples">here</a>.
6969
type: string

paths/keys/index.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,7 @@ parameters:
2727
in: query
2828
schema:
2929
type: string
30-
- description: |
31-
Specify a query to do broad search for keys by name (including wildcards).<br><br>
32-
The following qualifiers are also supported in the search term:<br>
33-
<ul>
34-
<li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li>
35-
<li><code>name:key_name,...</code> for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes</li>
36-
<li><code>tags:tag_name,...</code> to filter for keys with certain comma-seperated list of tags</li>
37-
<li><code>uploads:upload_id,...</code> to filter for keys with certain comma-seperated list of uploads</li>
38-
<li><code>job:{true|false}</code> to filter for keys mentioned in an active job</li>
39-
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
40-
<li><code>updated_at:{&gt;=|&lt;=}2013-02-21T00:00:00Z</code> for date range queries</li>
41-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
42-
</ul>
43-
Find more examples <a href="#overview--usage-examples">here</a>.
44-
example: mykey* translated:true
45-
name: q
46-
in: query
47-
schema:
48-
type: string
30+
- "$ref": "../../parameters.yaml#/q"
4931
- description: Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
5032
example: abcd1234abcd1234abcd1234abcd1234
5133
name: locale_id

paths/keys/search.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ requestBody:
7979
<li><code>job:{true|false}</code> to filter for keys mentioned in an active job</li>
8080
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
8181
<li><code>updated_at:{&gt;=|&lt;=}2013-02-21T00:00:00Z</code> for date range queries</li>
82-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
82+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
8383
</ul>
8484
Find more examples <a href="#overview--usage-examples">here</a>.
8585
Please note: If <code>tags</code> are added to filter the search, the search will be limited to a maximum of 65,536 tagged keys.

paths/keys/tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ requestBody:
6363
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
6464
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
6565
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
66-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
66+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
6767
</ul>
6868
Find more examples <a href="#overview--usage-examples">here</a>.
6969
type: string

paths/keys/untag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ requestBody:
6363
<li><code>tags:tag_name</code> to filter for keys with certain tags</li>
6464
<li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li>
6565
<li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li>
66-
<li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li>
66+
<li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li>
6767
</ul>
6868
Find more examples <a href="#overview--usage-examples">here</a>.
6969
type: string

0 commit comments

Comments
 (0)