java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.V2WebsiteController

@RestController public class V2WebsiteController extends Object
This controller is only responsible for the incompatible v2 endpoints, which differ from the latest endpoint
  • Constructor Details

    • V2WebsiteController

      public V2WebsiteController(WebsiteService websiteService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • find

      @GetMapping(value={"/v2/websites","/latest/websites"}, produces="application/json") public org.springframework.http.ResponseEntity<String> find(@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.list.sorting.Order> sortBy, @RequestParam(name="searchTerm",required=false) String searchTerm) throws com.fasterxml.jackson.core.JsonProcessingException, ServiceException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
      ServiceException
    • getByUuid

      @GetMapping(value={"/v2/websites/{uuid}","/v2/websites/{uuid}.json"}, produces="application/json") public String getByUuid(@PathVariable UUID uuid) throws com.fasterxml.jackson.core.JsonProcessingException, ServiceException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
      ServiceException