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