@RequestMapping(value = "/todos")
public class TodoHateoasController extends BaseController {
@Autowired
private TodoQueryService queryService;
@RequestMapping(value = "/{todo-id}", method = GET)
<BUG>public Observable<ResourceWithUrl> getTodo(@PathVariable("todo-id") String id) {

return queryService.findById(new EntityIdentifier(id)).map(this::toResource);
</BUG>
}

@RequestMapping(value = "/todos")
public class TodoHateoasController extends BaseController {
@Autowired
private TodoQueryService queryService;
@RequestMapping(value = "/{todo-id}", method = GET)
public CompletableFuture<ResourceWithUrl> getTodo(@PathVariable("todo-id") String id) {
return queryService.findById(id).thenApply(this::toResource);
}
