Context

Context represents the information about the project locales and the deployment environment.

Get locales and environment information

GET
https://{project}-{customer}.frontastic.io/frontastic/context

Returns information about the project locales setup and the environment in which the requested host acts in.

Headers:

  • Accept - application/json - Required
Path parameters:
project
String

Project Name

customer
String

Customer Name

Response:
200ProjectContextasapplication/json
Request Example:cURL
curl --get https://{project}-{customer}.frontastic.io/frontastic/context -i \
--header 'Accept: ${ACCEPT}'
200 Response Example: ProjectContextjson
{
"locales": ["de_CH", "fr_CH", "it_CH", "de_LI", "en_GB"],
"defaultLocale": "de_CH",
"environment": "development"
}