Package com.malay.shortyshoe.controller
Class PurchaseReportController
java.lang.Object
com.malay.shortyshoe.controller.PurchaseReportController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<PurchaseReport>
org.springframework.http.ResponseEntity<Void>
delPr
(int id) org.springframework.http.ResponseEntity<List<PurchaseReport>>
getAllPR()
org.springframework.http.ResponseEntity<PurchaseReport>
getPrById
(int id)
-
Constructor Details
-
PurchaseReportController
public PurchaseReportController()
-
-
Method Details
-
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)
-