Class LanguageAPIController

java.lang.Object
de.digitalcollections.cudami.admin.controller.LanguageAPIController

@RestController public class LanguageAPIController extends Object
  • Constructor Details

    • LanguageAPIController

      public LanguageAPIController(LanguageService languageService)
  • Method Details

    • getAllLanguages

      @GetMapping("/api/languages") public List<String> getAllLanguages() throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getDefaultLanguages

      @GetMapping("/api/languages/default") public Locale getDefaultLanguages() throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException