Class V3WebsiteController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.V3WebsiteController
-
@RestController public class V3WebsiteController extends 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>findById(UUID uuid)org.springframework.http.ResponseEntity<String>getRootPages(UUID uuid, int pageNumber, int pageSize, List<de.digitalcollections.model.paging.Order> sortBy)
-
-
-
Constructor Detail
-
V3WebsiteController
public V3WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getRootPages
@GetMapping(value={"/v3/websites/{uuid}/rootpages","/latest/websites/{uuid}/rootpages"}, produces="application/json") public org.springframework.http.ResponseEntity<String> getRootPages(@PathVariable("uuid") 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) 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<String> findById(@PathVariable UUID uuid) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-