So right now, I am returning a response looking like
@GetMapping("/integers")
@ResponseStatus(code = HttpStatus.OK)
public Mono<Map<String, Flux<Integer>>> getIntegers() {
Mono<Map<String, Flux<Integer>>> integers =
Mono.just(Map.of("Integers", integerService.getIntegers()));
return integers;
}
which gives me a response of
{"Integers":{"scanAvailable":true,"prefetch":-1}}
where I expected it to stream the Flux<Integer> part as well, but it didn't. How would I do this in Spring webflux?