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:
200ProjectContext
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"
}
Composable Commerce
Getting StartedMerchant CenterTutorialsHTTP APIGraphQL APIImport & ExportSDKs & Client LibrariesCustom Applications
Frontend
Getting StartedStudioDevelopingHTTP API
Sign upLog inSupportStatusOfferingTech BlogIntegrationsUser Research Program
Copyright © 2023 commercetools
Privacy PolicyImprint