Ignore:
Timestamp:
02/12/22 17:21:18 (2 years ago)
Author:
andrejTavchioski <andrej.tavchioski@…>
Branches:
master
Children:
b2e6513
Parents:
7bb19d4
Message:

paying session fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/app/src/main/java/parkup/controllers/ParkingSessionController.java

    r7bb19d4 rbfc49f4  
    4040        return this.parkingSessionService.verifyParkingSession(parkingSessionId,parkingSpaceName);
    4141    }
    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();
    4545    }
    4646    @PutMapping("/parkingSession/pay")
    47     public boolean payParkingSession(@RequestParam String expireDate){
     47    public boolean payParkingSession(@RequestParam(required = false) String expireDate){
    4848        return this.parkingSessionService.payParkingSession(expireDate);
    4949    }
Note: See TracChangeset for help on using the changeset viewer.