Class V2WebsiteController


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

      • V2WebsiteController

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

      • 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
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • 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
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException