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

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<java.lang.String> findAll​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String searchTerm)  
    java.lang.String findById​(java.util.UUID uuid)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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