Assert.notNull(todo.getTitle());
<BUG>return todoService.save(todo).map(e -> withRequestAttributeContext(request, () -> toResource(e.entity().getTodo(), e.getEntityIdentifier().getId())));
</BUG>
}
@RequestMapping(value = "/{todo-id}", method = DELETE)
<BUG>public Observable<ResourceWithUrl> deleteOneTodo(@PathVariable("todo-id") String id, HttpServletRequest request) {

return todoService.remove(id).map(e -> withRequestAttributeContext(request, () -> toResource(e.entity().getTodo(), e.getEntityIdentifier().getId())));
</BUG>
}

Assert.notNull(todo.getTitle());
return todoService.save(todo).thenApply(e -> withRequestAttributeContext(request, () -> toResource(e.getAggregate().getTodo(), e.getEntityId())));
}
@RequestMapping(value = "/{todo-id}", method = DELETE)
public CompletableFuture<ResourceWithUrl> deleteOneTodo(@PathVariable("todo-id") String id, HttpServletRequest request) {
return todoService.remove(id)
.thenApply(e -> withRequestAttributeContext(request, () -> toResource(e.getAggregate().getTodo(), e.getEntityId())));
}
