Class TaskPrintController

java.lang.Object
fr.tiogars.chat.domains.task.controllers.TaskPrintController

@RestController @RequestMapping("/api/v1/task") public class TaskPrintController extends Object
Exposes printable PDFs for single, all, and selected Tasks.
  • Constructor Details

  • Method Details

    • printTask

      @GetMapping(value="/{id}/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printTask(@PathVariable Long id) throws IOException
      Throws:
      IOException
    • printAllTasks

      @GetMapping(value="/print.pdf", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printAllTasks() throws IOException
      Throws:
      IOException
    • printSelectedTasks

      @PostMapping(value="/print-selected.pdf", consumes="application/json", produces="application/pdf") public org.springframework.http.ResponseEntity<byte[]> printSelectedTasks(@Valid @RequestBody @Valid PrintSelectedTasksRequest request) throws IOException
      Throws:
      IOException