Class TranslationResource

java.lang.Object
io.goobi.viewer.api.rest.v1.localization.TranslationResource

@Path("/localization") public class TranslationResource extends Object
REST resource for retrieving localized message strings used throughout the viewer interface.
Author:
Florian Alpers
  • Constructor Details

    • TranslationResource

      public TranslationResource()
  • Method Details

    • getTranslations

      @GET @Path("/translations") @Produces("application/json") public TranslationResource.TranslationList getTranslations(@QueryParam("keys") String inKeys) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
      getTranslations.
      Parameters:
      inKeys - comma-separated list of message keys to translate
      Returns:
      a TranslationList containing translations for the requested message keys in all configured languages
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException