- Timestamp:
- 02/24/25 23:48:34 (3 months ago)
- Branches:
- master
- Children:
- 8a947b9
- Parents:
- 07fe0be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/skychasemk/controller/SupportTicketController.java
r07fe0be rc064a42 39 39 } 40 40 41 @PutMapping("/{ticketI D}/status")42 public ResponseEntity<SupportTicket> updateTicket(@PathVariable("ticketI D") Integer ticketID, @RequestBodyString status) {41 @PutMapping("/{ticketId}/{status}") 42 public ResponseEntity<SupportTicket> updateTicket(@PathVariable("ticketId") Integer ticketId, @PathVariable String status) { 43 43 try { 44 44 SupportTicket.TicketStatus newStatus = SupportTicket.TicketStatus.valueOf(status.toUpperCase()); 45 return ResponseEntity.ok(supportTicketService.updateTicket(ticketI D, newStatus));45 return ResponseEntity.ok(supportTicketService.updateTicket(ticketId, newStatus)); 46 46 } catch (IllegalArgumentException e) { 47 47 return ResponseEntity.badRequest().build();
Note:
See TracChangeset
for help on using the changeset viewer.