Class LocaleController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.LocaleController
-
@RestController public class LocaleController extends Object
-
-
Constructor Summary
Constructors Constructor Description LocaleController(LocaleService localeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalegetDefaultLanguage()LocalegetDefaultLocale()List<String>getSupportedLanguages()List<Locale>getSupportedLocales()
-
-
-
Constructor Detail
-
LocaleController
public LocaleController(LocaleService localeService)
-
-
Method Detail
-
getDefaultLanguage
@GetMapping(value={"/v5/languages/default","/v2/languages/default","/latest/languages/default"}, produces="application/json") public Locale getDefaultLanguage()
-
getDefaultLocale
@GetMapping(value={"/v5/locales/default","/v2/locales/default","/v1/locales/default","/latest/locales/default"}, produces="application/json") public Locale getDefaultLocale()
-
getSupportedLanguages
@GetMapping(value={"/v5/languages","/v2/languages","/latest/languages"}, produces="application/json") public List<String> getSupportedLanguages()
-
-