@@ -10,6 +10,7 @@ servers:
10
10
tags :
11
11
- name : government-representative
12
12
- name : government
13
+ - name : menu
13
14
14
15
paths :
15
16
/{languageShortName}/api/admin/gov-representatives :
77
78
' 405 ' :
78
79
description : Validation exception
79
80
80
- /{languageShortName}/api/admin/gov-representatives/government /{governmentId} :
81
+ /{languageShortName}/api/admin/gov-representatives/governments /{governmentId} :
81
82
get :
82
83
tags :
83
84
- government-representative
@@ -137,19 +138,19 @@ paths:
137
138
' 405 ' :
138
139
description : Validation exception
139
140
140
- /api/admin/gov-representatives/government :
141
+ /{languageShortName}/ api/admin/governments :
141
142
get :
142
143
tags :
143
144
- government
144
145
summary : Get government data
145
146
operationId : renderAllGovernments
146
- # parameters:
147
- # - name: languageShortName
148
- # in: path
149
- # description: short name of selected language
150
- # required: true
151
- # schema:
152
- # type: string
147
+ parameters :
148
+ - name : languageShortName
149
+ in : path
150
+ description : short name of selected language
151
+ required : true
152
+ schema :
153
+ type : string
153
154
responses :
154
155
' 200 ' :
155
156
description : OK
@@ -158,7 +159,83 @@ paths:
158
159
schema :
159
160
type : array
160
161
items :
161
- $ref : ' #/components/schemas/GovernmentAdminModel'
162
+ $ref : ' #/components/schemas/GovernmentTranslationModel'
163
+ headers :
164
+ Cache-Control :
165
+ description : Cache control header
166
+ schema :
167
+ type : string
168
+ Expires :
169
+ description : Expiration date header
170
+ schema :
171
+ type : string
172
+
173
+ /{languageShortName}/api/admin/governments/{governmentId} :
174
+ get :
175
+ tags :
176
+ - government
177
+ summary : Get government data
178
+ operationId : renderAllGovernmentsById
179
+ parameters :
180
+ - name : languageShortName
181
+ in : path
182
+ description : short name of selected language
183
+ required : true
184
+ schema :
185
+ type : string
186
+ - name : governmentId
187
+ in : path
188
+ description : ID of the government to filter by
189
+ required : true
190
+ schema :
191
+ type : integer
192
+ format : int64
193
+ minimum : 1
194
+ responses :
195
+ ' 200 ' :
196
+ description : OK
197
+ content :
198
+ application/json :
199
+ schema :
200
+ type : array
201
+ items :
202
+ $ref : ' #/components/schemas/GovernmentTranslationModel'
203
+ headers :
204
+ Cache-Control :
205
+ description : Cache control header
206
+ schema :
207
+ type : string
208
+ Expires :
209
+ description : Expiration date header
210
+ schema :
211
+ type : string
212
+ /{languageShortName}/api/admin/menu :
213
+ get :
214
+ tags :
215
+ - menu
216
+ summary : Get menu translation
217
+ operationId : renderAllMenuTranslations
218
+ parameters :
219
+ - name : languageShortName
220
+ in : path
221
+ description : short name of selected language
222
+ required : true
223
+ schema :
224
+ type : string
225
+ - name : translationKey
226
+ in : query
227
+ required : true
228
+ schema :
229
+ type : string
230
+ responses :
231
+ ' 200 ' :
232
+ description : OK
233
+ content :
234
+ application/json :
235
+ schema :
236
+ type : array
237
+ items :
238
+ $ref : ' #/components/schemas/MenuTranslationModel'
162
239
headers :
163
240
Cache-Control :
164
241
description : Cache control header
@@ -199,27 +276,17 @@ components:
199
276
type : string
200
277
format : uuid
201
278
example : ' 3a8ea9f1-1a95-4caf-932f-2f988052933b'
202
- name :
203
- description : Name of the Representative entity
204
- type : string
205
- example : ' Vadász Csaba'
206
279
government :
207
280
# description: Name of the Ministry
208
281
# type: string
209
282
# example: "Miniszterelnökség"
210
283
$ref : ' #/components/schemas/GovernmentAdminModel'
211
- secretairat :
212
- description : Name of the Secretairat
213
- type : string
214
- example : " Közigzagatási államtitkár"
215
- jobTitle :
216
- description : Job title of the Government Representative
217
- type : string
218
- example : " Miniszterelnökséget vezető miniszter"
219
- address :
220
- description : Address of the Agency
221
- type : string
222
- example : " 2011 Budakalász, Gerinc utca hrsz. 2287/3"
284
+ representativeTranslation :
285
+ $ref : ' #/components/schemas/RepresentativeTranslationManagerModel'
286
+ previousJobTitle :
287
+ type : array
288
+ items :
289
+ $ref : ' #/components/schemas/PreviousJobTitleTranslationModel'
223
290
phoneNumber :
224
291
description : Phone number of the Representative entity
225
292
type : string
@@ -232,12 +299,6 @@ components:
232
299
description : Photo of the Representative
233
300
type : string
234
301
format : byte
235
- note :
236
- description : Any extra, useful information
237
- type : string
238
- example : ' Főosztály megnevezése: '
239
- lang :
240
- type : string
241
302
availability :
242
303
$ref : ' #/components/schemas/Availability'
243
304
@@ -264,6 +325,10 @@ components:
264
325
description : Address of the Agency
265
326
type : string
266
327
example : " 2011 Budakalász, Gerinc utca hrsz. 2287/3"
328
+ country :
329
+ description : country of the Agency
330
+ type : string
331
+ example : " Magyarország"
267
332
phoneNumber :
268
333
description : Phone number of the Representative entity
269
334
type : string
@@ -281,6 +346,54 @@ components:
281
346
type : string
282
347
example : ' ételérzékenység: nincs, egyéb infó: vegán'
283
348
349
+ RepresentativeTranslationManagerModel :
350
+ type : object
351
+ properties :
352
+ id :
353
+ type : string
354
+ format : uuid
355
+ example : ' 3a8ea9f1-1a95-4caf-932f-2f988052933b'
356
+ languageShortName :
357
+ type : string
358
+ name :
359
+ description : Name of the Representative entity
360
+ type : string
361
+ example : ' Vadász Csaba'
362
+ secretairat :
363
+ description : Name of the Secretairat
364
+ type : string
365
+ example : " Közigzagatási államtitkár"
366
+ jobTitle :
367
+ description : Job title of the Government Representative
368
+ type : string
369
+ example : " Miniszterelnökséget vezető miniszter"
370
+ address :
371
+ description : Address of the Agency
372
+ type : string
373
+ example : " 2011 Budakalász, Gerinc utca hrsz. 2287/3"
374
+ country :
375
+ description : country of the Agency
376
+ type : string
377
+ example : " Magyarország"
378
+ note :
379
+ description : Any extra, useful information
380
+ type : string
381
+ example : ' Főosztály megnevezése: '
382
+ secretNote :
383
+ description : Secret note that is only visible for the Managers
384
+ example : ' Secret message'
385
+
386
+ PreviousJobTitleTranslationModel :
387
+ type : object
388
+ properties :
389
+ id :
390
+ type : integer
391
+ format : int64
392
+ name :
393
+ type : string
394
+ languageShortName :
395
+ type : string
396
+
284
397
GovernmentAdminModel :
285
398
type : object
286
399
properties :
@@ -289,6 +402,25 @@ components:
289
402
format : int64
290
403
name :
291
404
type : string
405
+ languageShortName :
406
+ type : string
407
+ governmentId :
408
+ type : integer
409
+ format : int64
410
+
411
+ GovernmentTranslationModel :
412
+ type : object
413
+ properties :
414
+ id :
415
+ type : integer
416
+ format : int64
417
+ language_short_name :
418
+ type : string
419
+ name :
420
+ type : string
421
+ governmentId :
422
+ type : integer
423
+ format : int64
292
424
293
425
Availability :
294
426
type : string
@@ -306,4 +438,17 @@ components:
306
438
shortName :
307
439
type : string
308
440
name :
441
+ type : string
442
+
443
+ MenuTranslationModel :
444
+ type : object
445
+ properties :
446
+ id :
447
+ type : integer
448
+ format : int64
449
+ languageShortName :
450
+ type : string
451
+ translationKey :
452
+ type : string
453
+ translationValue :
309
454
type : string
0 commit comments