Skip to content

Commit cb43e90

Browse files
committed
#261 - Locale Support
1 parent cda39f5 commit cb43e90

21 files changed

+1585
-482
lines changed

Diff for: docs/openapi/openapi-iam.yaml

+112-9
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,95 @@
10091009
- ApiAuthorization: []
10101010
x-amazon-apigateway-integration:
10111011
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1012+
/sites/{siteId}/locales:
1013+
get:
1014+
operationId: GetLocales
1015+
description: Returns the list locales
1016+
summary: Get Locales
1017+
tags:
1018+
- System Management
1019+
parameters:
1020+
- $ref: '#/components/parameters/siteIdPathParam'
1021+
- $ref: '#/components/parameters/nextParam'
1022+
- $ref: '#/components/parameters/limitParam'
1023+
responses:
1024+
"200":
1025+
description: 200 OK
1026+
headers:
1027+
Access-Control-Allow-Origin:
1028+
$ref: '#/components/headers/AccessControlAllowOrigin'
1029+
Access-Control-Allow-Methods:
1030+
$ref: '#/components/headers/AccessControlAllowMethods'
1031+
Access-Control-Allow-Headers:
1032+
$ref: '#/components/headers/AccessControlAllowHeaders'
1033+
content:
1034+
application/json:
1035+
schema:
1036+
$ref: '#/components/schemas/GetLocalesResponse'
1037+
security:
1038+
- ApiAuthorization: []
1039+
x-amazon-apigateway-integration:
1040+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1041+
post:
1042+
operationId: AddLocale
1043+
description: Add a Locale
1044+
summary: Add Locale
1045+
tags:
1046+
- System Management
1047+
parameters:
1048+
- $ref: '#/components/parameters/siteIdPathParam'
1049+
requestBody:
1050+
required: true
1051+
content:
1052+
application/json:
1053+
schema:
1054+
$ref: '#/components/schemas/AddLocaleRequest'
1055+
responses:
1056+
"200":
1057+
description: 200 OK
1058+
headers:
1059+
Access-Control-Allow-Origin:
1060+
$ref: '#/components/headers/AccessControlAllowOrigin'
1061+
Access-Control-Allow-Methods:
1062+
$ref: '#/components/headers/AccessControlAllowMethods'
1063+
Access-Control-Allow-Headers:
1064+
$ref: '#/components/headers/AccessControlAllowHeaders'
1065+
content:
1066+
application/json:
1067+
schema:
1068+
$ref: '#/components/schemas/AddResponse'
1069+
security:
1070+
- ApiAuthorization: []
1071+
x-amazon-apigateway-integration:
1072+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1073+
/sites/{siteId}/locales/{locale}:
1074+
delete:
1075+
operationId: DeleteLocale
1076+
summary: Delete Locale
1077+
description: Delete Locale
1078+
tags:
1079+
- System Management
1080+
parameters:
1081+
- $ref: '#/components/parameters/siteIdPathParam'
1082+
- $ref: '#/components/parameters/localeParam'
1083+
responses:
1084+
"200":
1085+
description: 200 OK
1086+
headers:
1087+
Access-Control-Allow-Origin:
1088+
$ref: '#/components/headers/AccessControlAllowOrigin'
1089+
Access-Control-Allow-Methods:
1090+
$ref: '#/components/headers/AccessControlAllowMethods'
1091+
Access-Control-Allow-Headers:
1092+
$ref: '#/components/headers/AccessControlAllowHeaders'
1093+
content:
1094+
application/json:
1095+
schema:
1096+
$ref: '#/components/schemas/DeleteResponse'
1097+
security:
1098+
- ApiAuthorization: []
1099+
x-amazon-apigateway-integration:
1100+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
10121101
/sites/{siteId}/locales/{locale}/resourceItems:
10131102
get:
10141103
operationId: GetLocaleResourceItems
@@ -9301,15 +9390,6 @@
93019390
type: string
93029391
description: The default JSON object path for the data object
93039392
default: data
9304-
Locale:
9305-
type: object
9306-
properties:
9307-
language:
9308-
type: string
9309-
description: 'ISO 639-1 language code (eg: en (English), fr (French), de (German))'
9310-
country:
9311-
type: string
9312-
description: 'ISO 3166-1 country code (eg: US, CA, DE, FR)'
93139393
DocumentGenerateOutputType:
93149394
type: string
93159395
description: Document Generate Output Type
@@ -10281,6 +10361,29 @@
1028110361
itemKey:
1028210362
type: string
1028310363
description: Item Key of resource
10364+
Locale:
10365+
type: object
10366+
properties:
10367+
locale:
10368+
type: string
10369+
description: Name of Locale
10370+
AddLocaleRequest:
10371+
type: object
10372+
properties:
10373+
locale:
10374+
type: string
10375+
description: Name of Locale
10376+
GetLocalesResponse:
10377+
type: object
10378+
properties:
10379+
next:
10380+
type: string
10381+
description: Next page of results token
10382+
locales:
10383+
type: array
10384+
description: List of Locale
10385+
items:
10386+
$ref: '#/components/schemas/Locale'
1028410387
GetLocaleResourceItemsResponse:
1028510388
type: object
1028610389
properties:

Diff for: docs/openapi/openapi-jwt.yaml

+112-9
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,95 @@
10091009
- ApiAuthorization: []
10101010
x-amazon-apigateway-integration:
10111011
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1012+
/sites/{siteId}/locales:
1013+
get:
1014+
operationId: GetLocales
1015+
description: Returns the list locales
1016+
summary: Get Locales
1017+
tags:
1018+
- System Management
1019+
parameters:
1020+
- $ref: '#/components/parameters/siteIdPathParam'
1021+
- $ref: '#/components/parameters/nextParam'
1022+
- $ref: '#/components/parameters/limitParam'
1023+
responses:
1024+
"200":
1025+
description: 200 OK
1026+
headers:
1027+
Access-Control-Allow-Origin:
1028+
$ref: '#/components/headers/AccessControlAllowOrigin'
1029+
Access-Control-Allow-Methods:
1030+
$ref: '#/components/headers/AccessControlAllowMethods'
1031+
Access-Control-Allow-Headers:
1032+
$ref: '#/components/headers/AccessControlAllowHeaders'
1033+
content:
1034+
application/json:
1035+
schema:
1036+
$ref: '#/components/schemas/GetLocalesResponse'
1037+
security:
1038+
- ApiAuthorization: []
1039+
x-amazon-apigateway-integration:
1040+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1041+
post:
1042+
operationId: AddLocale
1043+
description: Add a Locale
1044+
summary: Add Locale
1045+
tags:
1046+
- System Management
1047+
parameters:
1048+
- $ref: '#/components/parameters/siteIdPathParam'
1049+
requestBody:
1050+
required: true
1051+
content:
1052+
application/json:
1053+
schema:
1054+
$ref: '#/components/schemas/AddLocaleRequest'
1055+
responses:
1056+
"200":
1057+
description: 200 OK
1058+
headers:
1059+
Access-Control-Allow-Origin:
1060+
$ref: '#/components/headers/AccessControlAllowOrigin'
1061+
Access-Control-Allow-Methods:
1062+
$ref: '#/components/headers/AccessControlAllowMethods'
1063+
Access-Control-Allow-Headers:
1064+
$ref: '#/components/headers/AccessControlAllowHeaders'
1065+
content:
1066+
application/json:
1067+
schema:
1068+
$ref: '#/components/schemas/AddResponse'
1069+
security:
1070+
- ApiAuthorization: []
1071+
x-amazon-apigateway-integration:
1072+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
1073+
/sites/{siteId}/locales/{locale}:
1074+
delete:
1075+
operationId: DeleteLocale
1076+
summary: Delete Locale
1077+
description: Delete Locale
1078+
tags:
1079+
- System Management
1080+
parameters:
1081+
- $ref: '#/components/parameters/siteIdPathParam'
1082+
- $ref: '#/components/parameters/localeParam'
1083+
responses:
1084+
"200":
1085+
description: 200 OK
1086+
headers:
1087+
Access-Control-Allow-Origin:
1088+
$ref: '#/components/headers/AccessControlAllowOrigin'
1089+
Access-Control-Allow-Methods:
1090+
$ref: '#/components/headers/AccessControlAllowMethods'
1091+
Access-Control-Allow-Headers:
1092+
$ref: '#/components/headers/AccessControlAllowHeaders'
1093+
content:
1094+
application/json:
1095+
schema:
1096+
$ref: '#/components/schemas/DeleteResponse'
1097+
security:
1098+
- ApiAuthorization: []
1099+
x-amazon-apigateway-integration:
1100+
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
10121101
/sites/{siteId}/locales/{locale}/resourceItems:
10131102
get:
10141103
operationId: GetLocaleResourceItems
@@ -9301,15 +9390,6 @@
93019390
type: string
93029391
description: The default JSON object path for the data object
93039392
default: data
9304-
Locale:
9305-
type: object
9306-
properties:
9307-
language:
9308-
type: string
9309-
description: 'ISO 639-1 language code (eg: en (English), fr (French), de (German))'
9310-
country:
9311-
type: string
9312-
description: 'ISO 3166-1 country code (eg: US, CA, DE, FR)'
93139393
DocumentGenerateOutputType:
93149394
type: string
93159395
description: Document Generate Output Type
@@ -10281,6 +10361,29 @@
1028110361
itemKey:
1028210362
type: string
1028310363
description: Item Key of resource
10364+
Locale:
10365+
type: object
10366+
properties:
10367+
locale:
10368+
type: string
10369+
description: Name of Locale
10370+
AddLocaleRequest:
10371+
type: object
10372+
properties:
10373+
locale:
10374+
type: string
10375+
description: Name of Locale
10376+
GetLocalesResponse:
10377+
type: object
10378+
properties:
10379+
next:
10380+
type: string
10381+
description: Next page of results token
10382+
locales:
10383+
type: array
10384+
description: List of Locale
10385+
items:
10386+
$ref: '#/components/schemas/Locale'
1028410387
GetLocaleResourceItemsResponse:
1028510388
type: object
1028610389
properties:

0 commit comments

Comments
 (0)