Class V3WebsiteController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.V3WebsiteController
@RestController
public class V3WebsiteController
extends java.lang.Object
This controller is only responsible for the incompatible v3 endpoints, which differ from the
latest endpoint
-
Constructor Summary
Constructors Constructor Description V3WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>findById(java.util.UUID uuid)org.springframework.http.ResponseEntity<java.lang.String>getRootPages(java.util.UUID uuid, int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy)
-
Constructor Details
-
V3WebsiteController
public V3WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getRootPages
@GetMapping(value={"/v3/websites/{uuid}/rootpages","/latest/websites/{uuid}/rootpages"}, produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> getRootPages(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
findById
@GetMapping(value={"/latest/websites/{uuid}","/v3/websites/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> findById(@PathVariable java.util.UUID uuid) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-