Changeset bfc49f4 for sources/app/src/main/java/parkup/controllers
- Timestamp:
- 02/12/22 17:21:18 (3 years ago)
- Branches:
- master
- Children:
- b2e6513
- Parents:
- 7bb19d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/app/src/main/java/parkup/controllers/ParkingSessionController.java
r7bb19d4 rbfc49f4 40 40 return this.parkingSessionService.verifyParkingSession(parkingSessionId,parkingSpaceName); 41 41 } 42 @GetMapping("/parkingSession/calculate /{parkingSessionId}")43 public int calculateParkingSession( @PathVariable int parkingSessionId){44 return this.parkingSessionService.calculatePayment( parkingSessionId);42 @GetMapping("/parkingSession/calculate") 43 public int calculateParkingSession(){ 44 return this.parkingSessionService.calculatePayment(); 45 45 } 46 46 @PutMapping("/parkingSession/pay") 47 public boolean payParkingSession(@RequestParam String expireDate){47 public boolean payParkingSession(@RequestParam(required = false) String expireDate){ 48 48 return this.parkingSessionService.payParkingSession(expireDate); 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.