Class V1WebpageController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.v1.identifiable.entity.parts.V1WebpageController
-
@RestController @Api(description="The V1 webpage controller", name="V1 Webpage controller") public class V1WebpageController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description V1WebpageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>getWebpageV1Json(java.util.UUID uuid, java.util.Locale pLocale)org.springframework.http.ResponseEntity<java.lang.String>getWebpageV1Xml(java.util.UUID uuid, java.util.Locale pLocale)
-
-
-
Method Detail
-
getWebpageV1Json
@ApiMethod(description="get a webpage as JSON (Version 1), depending on extension or <tt>format</tt> request parameter or accept header") @RequestMapping(value="/v1/webpages/{uuid}.json", produces="application/json", method=GET) @ApiResponseObject public org.springframework.http.ResponseEntity<java.lang.String> getWebpageV1Json(@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) throws de.digitalcollections.cudami.server.business.api.service.exceptions.IdentifiableServiceException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
de.digitalcollections.cudami.server.business.api.service.exceptions.IdentifiableServiceExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
getWebpageV1Xml
@ApiMethod(description="get a webpage as JSON or XML (Version 1), depending on extension or <tt>format</tt> request parameter or accept header") @RequestMapping(value="/v1/webpages/{uuid}.xml", produces={"application/json","application/xml"}, method=GET) @ApiResponseObject public org.springframework.http.ResponseEntity<java.lang.String> getWebpageV1Xml(@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) throws de.digitalcollections.cudami.server.business.api.service.exceptions.IdentifiableServiceException, com.fasterxml.jackson.core.JsonProcessingException, org.springframework.oxm.XmlMappingException, java.io.IOException- Throws:
de.digitalcollections.cudami.server.business.api.service.exceptions.IdentifiableServiceExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionorg.springframework.oxm.XmlMappingExceptionjava.io.IOException
-
-