Class DomainTemplatePrintController

java.lang.Object
fr.tiogars.inception.domains.domaintemplate.controllers.DomainTemplatePrintController

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

  • Method Details

    • printDomainTemplate

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

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

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