Changeset 43c9090 for src/main/java/finki/it/terapijamkbackend/spring/controllers/AppointmentController.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/finki/it/terapijamkbackend/spring/controllers/AppointmentController.java
r743de55 r43c9090 94 94 try { 95 95 Long userId = appointmentService.updateAppointment(term); 96 System.out.println(userId);97 96 return ResponseEntity.ok(userId.toString()); 98 97 } catch (Exception e) { … … 120 119 try { 121 120 appointmentService.deleteAppointmentByTerm(term); 122 return ResponseEntity.noContent().build(); // Returns 204 No Content on success121 return ResponseEntity.noContent().build(); 123 122 } catch (IllegalArgumentException e) { 124 return ResponseEntity.notFound().build(); // Returns 404 Not Found if appointment doesn't exist123 return ResponseEntity.notFound().build(); 125 124 } 126 125 } … … 149 148 } 150 149 151 152 150 }
Note:
See TracChangeset
for help on using the changeset viewer.