Class V3WebsiteController


  • @RestController
    public class V3WebsiteController
    extends Object
    This controller is only responsible for the incompatible v3 endpoints, which differ from the latest endpoint
    • 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