java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.parts.WebpageHtmlController

@Controller
@Api(description="The webpage HTML controller",
     name="Webpage HTML controller")
public class WebpageHtmlController
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    WebpageHtmlController()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getWebpageAsHtml​(java.util.UUID uuid, java.util.Locale pLocale, java.lang.String renderLabel, org.springframework.ui.Model model)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getWebpageAsHtml

      @ApiMethod(description="Get a webpage as HTML") @GetMapping(value={"/latest/webpages/{uuid}.html","/v3/webpages/{uuid}.html","/v2/webpages/{uuid}.html","/v1/webpages/{uuid}.html"}, produces="text/html") public java.lang.String getWebpageAsHtml​(@ApiPathParam(description="UUID of the webpage, e.g. <tt>599a120c-2dd5-11e8-b467-0ed5f89f718b</tt>") @PathVariable("uuid") java.util.UUID uuid, @ApiQueryParam(name="pLocale",description="Desired locale, e.g. <tt>de_DE</tt>. If unset, contents in all languages will be returned") @RequestParam(name="pLocale",required=false) java.util.Locale pLocale, @ApiQueryParam(name="renderLabel",description="Switch for (de)activating rendering of webpage label. If \'false\', label rendering will be skipped") @RequestParam(name="renderLabel",required=false,defaultValue="true") java.lang.String renderLabel, org.springframework.ui.Model model) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException