Class V2WebsiteController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.V2WebsiteController
@RestController
public class V2WebsiteController
extends java.lang.Object
This controller is only responsible for the incompatible v2 endpoints, which differ from the
latest endpoint
-
Constructor Summary
Constructors Constructor Description V2WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
V2WebsiteController
public V2WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
findAll
@GetMapping(value={"/v2/websites","/latest/websites"}, produces="application/json") public org.springframework.http.ResponseEntity<java.lang.String> findAll(@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, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
findById
@GetMapping(value={"/v2/websites/{uuid}","/v2/websites/{uuid}.json"}, produces="application/json") public java.lang.String findById(@PathVariable java.util.UUID uuid) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-