Advertisement
BoberDiversant

Untitled

Dec 4th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.     @PostMapping("create")
  2.     public @ResponseBody
  3.     ResponseEntity<String> create(@RequestBody @Valid OutgoingCallTaskServiceLegacy.CreateCallTaskRequest request) {
  4.         ResponseEntity<String> responseEntity;
  5.         // callTask save logic
  6.         //.....
  7.        
  8.         // if task created
  9.         responseEntity = new ResponseEntity<>("callTaskId", HttpStatus.OK);
  10.         //else
  11.         responseEntity = new ResponseEntity<>(HttpStatus.BAD_REQUEST);
  12.         return responseEntity;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement