Unverified Commit fa1ab12d authored by Radhesh.B.H's avatar Radhesh.B.H Committed by GitHub
Browse files

Update TicketController.java

Changed the response entity
Showing with 2 additions and 2 deletions
+2 -2
......@@ -24,7 +24,7 @@ public class TicketController {
private AttachmentService attachmentService;
@PostMapping("/save")
public ResponseEntity<Ticket> save(@RequestBody TicketRequest ticketRequest) {
public ResponseEntity<Response> save(@RequestBody TicketRequest ticketRequest) {
Ticket responseTicket = null;
try {
responseTicket = ticketService.save(ticketRequest);
......@@ -33,7 +33,7 @@ public class TicketController {
throw new RuntimeException(e.getMessage());
}
Response response = new Response(HttpStatus.OK.value(), responseTicket);
return new ResponseEntity<>(responseTicket, HttpStatus.OK);
return new ResponseEntity<Response>(response, HttpStatus.OK);
}
@PostMapping("/update")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment