@RequestMapping(value = "/api/todolist", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
    public ResponseEntity<List<TodoItem>> getAllTodoItems() {
        return new ResponseEntity<>(todoList, HttpStatus.OK);
    }
@RequestMapping(value = "/api/todolist", method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE})
    public ResponseEntity<List<TodoItem>> getAllTodoItems() {
        return new ResponseEntity<>(todoList, HttpStatus.OK);
    }
@ RequestMapping ( value = "/api/todolist" , method = RequestMethod . GET , produces = { MediaType . APPLICATION_JSON_VALUE } ) public ResponseEntity < List < TodoItem > > getAllTodoItems ( ) { return new ResponseEntity <> ( todoList , HttpStatus . OK ) ; }
HTTP GET ALL
HTTP GET ALL