@RestController public class WebsitesAPIController extends AbstractEntitiesController<de.digitalcollections.model.identifiable.entity.Website,CudamiWebsitesClient>
Controller for all public "Websites" endpoints (API).
  • Constructor Details

  • Method Details

    • create

      @GetMapping("/api/websites/new") @ResponseBody public de.digitalcollections.model.identifiable.entity.Website create() throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • find

      @GetMapping("/api/websites") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.entity.Website> find(@RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException, ServiceException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      ServiceException
    • findRootpages

      @GetMapping("/api/websites/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/webpages") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootpages(@PathVariable UUID uuid, @RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • getByUuid

      @GetMapping("/api/websites/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") @ResponseBody public de.digitalcollections.model.identifiable.entity.Website getByUuid(@PathVariable UUID uuid) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • save

      @PostMapping("/api/websites") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.entity.Website website)
    • update

      @PutMapping("/api/websites/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Website website)
    • updateRootPagesOrder

      @PutMapping("/api/websites/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/webpages") public org.springframework.http.ResponseEntity updateRootPagesOrder(@PathVariable UUID uuid, @RequestBody List<de.digitalcollections.model.identifiable.web.Webpage> rootPages) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException