Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @PostMapping("create")
- public @ResponseBody
- ResponseEntity<String> create(@RequestBody @Valid OutgoingCallTaskServiceLegacy.CreateCallTaskRequest request) {
- ResponseEntity<String> responseEntity;
- // callTask save logic
- //.....
- // if task created
- responseEntity = new ResponseEntity<>("callTaskId", HttpStatus.OK);
- //else
- responseEntity = new ResponseEntity<>(HttpStatus.BAD_REQUEST);
- return responseEntity;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement