@@ -0,0 +1,820 @@
+package ems.controller.rest;%0A%0Aimport java.util.List;%0A%0Aimport ems.model.Todo;%0Aimport ems.service.TodoService;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0Apublic class TodoRestController %7B%0A    @Autowired%0A    private TodoService mTodoService;%0A%0A    @RequestMapping( value = %22/todo/%22, method = RequestMethod.GET )%0A    public List%3CTodo%3E listAllTodos() %7B%0A        return mTodoService.retrieveTodos( %22in28minutes%22 );%0A    %7D%0A%0A    public Todo retrieveTodo( @PathVariable( %22id%22 ) int id ) %7B%0A        return mTodoService.retrieveTodo( id );%0A    %7D%0A%7D%0A

Add Todo rest controller