|
1
|
get: |
|
2
|
operationId: GetLocales |
|
3
|
summary: List Locales |
|
4
|
description: >- |
|
5
|
Retrieve a list of locales. The locales can be filtered by fields such as |
|
6
|
`code`. The locales can also be sorted or paginated. |
|
7
|
x-authenticated: true |
|
8
|
parameters: |
|
9
|
- name: q |
|
10
|
in: query |
|
11
|
description: Search query to filter locales by code or other fields. |
|
12
|
required: false |
|
13
|
schema: |
|
14
|
type: string |
|
15
|
title: q |
|
16
|
description: Search query to filter locales by code or other fields. |
|
17
|
- name: code |
|
18
|
in: query |
|
19
|
required: false |
|
20
|
schema: |
|
21
|
oneOf: |
|
22
|
- type: string |
|
23
|
title: code |
|
24
|
description: Filter locales by a code. |
|
25
|
- type: array |
|
26
|
description: Filter locales by multiple codes. |
|
27
|
items: |
|
28
|
type: string |
|
29
|
title: code |
|
30
|
description: A locale code. |
|
31
|
- name: limit |
|
32
|
in: query |
|
33
|
description: Limit the number of items returned in the list. |
|
34
|
required: false |
|
35
|
schema: |
|
36
|
type: number |
|
37
|
title: limit |
|
38
|
description: Limit the number of items returned in the list. |
|
39
|
externalDocs: |
|
40
|
url: '#pagination' |
|
41
|
- name: offset |
|
42
|
in: query |
|
43
|
description: The number of items to skip when retrieving a list. |
|
44
|
required: false |
|
45
|
schema: |
|
46
|
type: number |
|
47
|
title: offset |
|
48
|
description: The number of items to skip when retrieving a list. |
|
49
|
externalDocs: |
|
50
|
url: '#pagination' |
|
51
|
- name: order |
|
52
|
in: query |
|
53
|
description: >- |
|
54
|
The field to sort the data by. By default, the sort order is ascending. |
|
55
|
To change the order to descending, prefix the field name with `-`. |
|
56
|
required: false |
|
57
|
schema: |
|
58
|
type: string |
|
59
|
title: order |
|
60
|
description: >- |
|
61
|
The field to sort the data by. By default, the sort order is |
|
62
|
ascending. To change the order to descending, prefix the field name |
|
63
|
with `-`. |
|
64
|
externalDocs: |
|
65
|
url: '#pagination' |
|
66
|
- name: with_deleted |
|
67
|
in: query |
|
68
|
description: The locale's with deleted. |
|
69
|
required: false |
|
70
|
schema: |
|
71
|
type: boolean |
|
72
|
title: with_deleted |
|
73
|
description: The locale's with deleted. |
|
74
|
- name: fields |
|
75
|
in: query |
|
76
|
description: >- |
|
77
|
Comma-separated fields that should be included in the returned data. If |
|
78
|
a field is prefixed with `+` it will be added to the default fields, |
|
79
|
using `-` will remove it from the default fields. Without prefix it will |
|
80
|
replace the entire default fields. |
|
81
|
required: false |
|
82
|
schema: |
|
83
|
type: string |
|
84
|
title: fields |
|
85
|
description: >- |
|
86
|
Comma-separated fields that should be included in the returned data. |
|
87
|
If a field is prefixed with `+` it will be added to the default |
|
88
|
fields, using `-` will remove it from the default fields. Without |
|
89
|
prefix it will replace the entire default fields. |
|
90
|
externalDocs: |
|
91
|
url: '#select-fields-and-relations' |
|
92
|
- name: $and |
|
93
|
in: query |
|
94
|
description: >- |
|
95
|
Join query parameters with an AND condition. Each object's content is |
|
96
|
the same type as the expected query parameters. |
|
97
|
required: false |
|
98
|
schema: |
|
99
|
type: array |
|
100
|
description: >- |
|
101
|
Join query parameters with an AND condition. Each object's content is |
|
102
|
the same type as the expected query parameters. |
|
103
|
items: |
|
104
|
type: object |
|
105
|
title: $and |
|
106
|
- name: $or |
|
107
|
in: query |
|
108
|
description: >- |
|
109
|
Join query parameters with an OR condition. Each object's content is the |
|
110
|
same type as the expected query parameters. |
|
111
|
required: false |
|
112
|
schema: |
|
113
|
type: array |
|
114
|
description: >- |
|
115
|
Join query parameters with an OR condition. Each object's content is |
|
116
|
the same type as the expected query parameters. |
|
117
|
items: |
|
118
|
type: object |
|
119
|
title: $or |
|
120
|
security: |
|
121
|
- api_token: [] |
|
122
|
- cookie_auth: [] |
|
123
|
- jwt_token: [] |
|
124
|
x-codeSamples: |
|
125
|
- lang: JavaScript |
|
126
|
label: JS SDK |
|
127
|
source: |
|
128
|
$ref: ../code_samples/JavaScript/admin_locales/get.js |
|
129
|
- lang: Shell |
|
130
|
label: cURL |
|
131
|
source: |
|
132
|
$ref: ../code_samples/Shell/admin_locales/get.sh |
|
133
|
tags: |
|
134
|
- Locales |
|
135
|
responses: |
|
136
|
'200': |
|
137
|
description: OK |
|
138
|
content: |
|
139
|
application/json: |
|
140
|
schema: |
|
141
|
$ref: ../components/schemas/AdminLocaleListResponse.yaml |
|
142
|
'400': |
|
143
|
$ref: ../components/responses/400_error.yaml |
|
144
|
'401': |
|
145
|
$ref: ../components/responses/unauthorized.yaml |
|
146
|
'404': |
|
147
|
$ref: ../components/responses/not_found_error.yaml |
|
148
|
'409': |
|
149
|
$ref: ../components/responses/invalid_state_error.yaml |
|
150
|
'422': |
|
151
|
$ref: ../components/responses/invalid_request_error.yaml |
|
152
|
'500': |
|
153
|
$ref: ../components/responses/500_error.yaml |
|
154
|
x-since: 2.12.3 |
|
155
|
x-featureFlag: translation |