Created
February 13, 2016 20:51
-
-
Save HDBandit/60752cb84813b59cd13c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/task") | |
public class TaskController { | |
@RequestMapping(method = RequestMethod.POST) | |
public void createTask(@RequestBody CreateTaskRequest createTaskRequest) { | |
if (TaskType.GROUP.equals(createTaskRequest.getType())) { | |
System.out.println("Creating group task"); | |
} | |
if (TaskType.USER.equals(createTaskRequest.getType())) { | |
System.out.print("Creating user task"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment