Class V2WebpageController


  • @RestController
    @Api(description="The V2 webpage controller",
         name="V2 Webpage controller")
    public class V2WebpageController
    extends Object
    • Constructor Detail

      • V2WebpageController

        public V2WebpageController()
    • Method Detail

      • getWebpageV2Json

        @ApiMethod(description="Get a webpage as JSON (Version 2)")
        @RequestMapping(value={"/v2/webpages/{uuid}.json","/v2/webpages/{uuid}"},
                        produces="application/json",
                        method=GET)
        @ApiResponseObject
        public org.springframework.http.ResponseEntity<String> getWebpageV2Json​(@ApiPathParam(description="UUID of the webpage, e.g. <tt>599a120c-2dd5-11e8-b467-0ed5f89f718b</tt>") @PathVariable("uuid")
                                                                                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)
                                                                                Locale pLocale)
                                                                         throws IdentifiableServiceException,
                                                                                com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IdentifiableServiceException
        com.fasterxml.jackson.core.JsonProcessingException
      • getWebpageV2Xml

        @ApiMethod(description="Get a webpage as XML (Version 2)")
        @RequestMapping(value="/v2/webpages/{uuid}.xml",
                        produces="application/xml",
                        method=GET)
        @ApiResponseObject
        public org.springframework.http.ResponseEntity<String> getWebpageV2Xml​(@ApiPathParam(description="UUID of the webpage, e.g. <tt>599a120c-2dd5-11e8-b467-0ed5f89f718b</tt>") @PathVariable("uuid")
                                                                               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)
                                                                               Locale pLocale)
                                                                        throws IdentifiableServiceException,
                                                                               com.fasterxml.jackson.core.JsonProcessingException,
                                                                               org.springframework.oxm.XmlMappingException,
                                                                               IOException
        Throws:
        IdentifiableServiceException
        com.fasterxml.jackson.core.JsonProcessingException
        org.springframework.oxm.XmlMappingException
        IOException