Class ReportCustomizationController


  • @RestController
    @RequestMapping("/api/customization/reports")
    public class ReportCustomizationController
    extends Object
    • Constructor Detail

      • ReportCustomizationController

        @Autowired
        public ReportCustomizationController​(ReportService service)
    • Method Detail

      • findAll

        @GetMapping
        public org.springframework.http.ResponseEntity<List<String>> findAll()
        TODO Criar método específico para obter apenas o nome dos relatórios.
      • create

        @PostMapping
        public org.springframework.http.ResponseEntity<Report> create​(@RequestBody
                                                                      Report report)
      • update

        @PutMapping("/{id}")
        public org.springframework.http.ResponseEntity<Report> update​(@PathVariable
                                                                      UUID id,
                                                                      @RequestBody
                                                                      Report report)
      • delete

        @DeleteMapping("/{id}")
        public org.springframework.http.ResponseEntity delete​(@PathVariable
                                                              UUID id)
      • get

        @GetMapping("/{id}")
        public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> get​(@PathVariable("id")
                                                                                                 UUID id,
                                                                                                 @RequestHeader(value="Content-Type",defaultValue="application/json")
                                                                                                 String contentType)
                                                                                          throws CronappFrameworkException
        Throws:
        CronappFrameworkException