@RequestMapping(value = "/api/todo/{id}", method = RequestMethod.PUT)
  @ResponseBody
  public TodoDTO update(@Valid @RequestBody TodoDTO dto, @PathVariable("id") Long todoId)
      throws TodoNotFoundException {
    LOGGER.debug("Updating a to-do entry with information: {}", dto);

    Todo updated = service.update(dto);
    LOGGER.debug("Updated the information of a to-entry to: {}", updated);

    return createDTO(updated);
  }