Ignore:
Timestamp:
02/24/25 23:48:34 (3 months ago)
Author:
ste08 <sjovanoska@…>
Branches:
master
Children:
8a947b9
Parents:
07fe0be
Message:

Support ticket working!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/skychasemk/controller/SupportTicketController.java

    r07fe0be rc064a42  
    3939    }
    4040
    41     @PutMapping("/{ticketID}/status")
    42     public ResponseEntity<SupportTicket> updateTicket(@PathVariable("ticketID") Integer ticketID, @RequestBody String status) {
     41    @PutMapping("/{ticketId}/{status}")
     42    public ResponseEntity<SupportTicket> updateTicket(@PathVariable("ticketId") Integer ticketId, @PathVariable String status) {
    4343        try {
    4444            SupportTicket.TicketStatus newStatus = SupportTicket.TicketStatus.valueOf(status.toUpperCase());
    45             return ResponseEntity.ok(supportTicketService.updateTicket(ticketID, newStatus));
     45            return ResponseEntity.ok(supportTicketService.updateTicket(ticketId, newStatus));
    4646        } catch (IllegalArgumentException e) {
    4747            return ResponseEntity.badRequest().build();
Note: See TracChangeset for help on using the changeset viewer.