Class PurchaseReportController

java.lang.Object
com.malay.shortyshoe.controller.PurchaseReportController

@RestController @RequestMapping("/api/pr") public class PurchaseReportController extends Object
  • Constructor Details

    • PurchaseReportController

      public PurchaseReportController()
  • Method Details

    • getAllPR

      @GetMapping("/") public org.springframework.http.ResponseEntity<List<PurchaseReport>> getAllPR()
    • createPr

      @PostMapping("/") public org.springframework.http.ResponseEntity<PurchaseReport> createPr(@RequestBody PurchaseReport pr)
    • delPr

      @DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Void> delPr(@PathVariable int id) throws BusinessException
      Throws:
      BusinessException
    • getPrById

      @GetMapping("/{id}") public org.springframework.http.ResponseEntity<PurchaseReport> getPrById(@PathVariable int id)