Class LocaleController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.LocaleController
-
@RestController @Api(description="The locale/language controller", name="Locale controller") public class LocaleController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocaleController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.Locale>getAll()java.util.LocalegetDefault()
-
-
-
Method Detail
-
getAll
@ApiMethod(description="get all supported locales") @RequestMapping(value={"/latest/locales","/v2/locales","/v1/locales"}, method=GET) @ApiResponseObject public java.util.List<java.util.Locale> getAll()
-
getDefault
@ApiMethod(description="get default locale") @RequestMapping(value={"/latest/locales/default","/v2/locales/default","/v1/locales/default"}, method=GET) @ApiResponseObject public java.util.Locale getDefault()
-
-