Ignore:
Timestamp:
10/12/24 21:32:15 (5 weeks ago)
Author:
macagaso <gasoskamarija@…>
Branches:
master
Parents:
743de55
Message:

Updated version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/finki/it/terapijamkbackend/spring/controllers/AppointmentController.java

    r743de55 r43c9090  
    9494        try {
    9595            Long userId = appointmentService.updateAppointment(term);
    96             System.out.println(userId);
    9796            return ResponseEntity.ok(userId.toString());
    9897        } catch (Exception e) {
     
    120119        try {
    121120            appointmentService.deleteAppointmentByTerm(term);
    122             return ResponseEntity.noContent().build(); // Returns 204 No Content on success
     121            return ResponseEntity.noContent().build();
    123122        } catch (IllegalArgumentException e) {
    124             return ResponseEntity.notFound().build(); // Returns 404 Not Found if appointment doesn't exist
     123            return ResponseEntity.notFound().build();
    125124        }
    126125    }
     
    149148    }
    150149
    151 
    152150}
Note: See TracChangeset for help on using the changeset viewer.