Hello Spring Framework team,

Thank you for this amazing project, especially Spring Webflux. I have a question to the community, could you please tell me what is the difference between ResponseEntity<Mono<Foo>> versus Mono<ResponseEntity<Foo>> as a return type of a rest controller? When is the most appropriate to what? Following up on this question, let's say I need to return a list, or let's say several elements of Foo, there are many examples of returning Flux<Foo>. Would it make sense to return ResponseEntity<Flux<Foo>> or Flux<ResponseEntity<Foo>>?

Thank you a lot for your help. I am not trying to spam, just to learn something new, please don't "just close" this.

Comment From: sbrannen

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

Comment From: opncow

Any chance someone could answer the same question on SO: https://stackoverflow.com/q/57769190 ?

Comment From: sandyk1212

Fala

Em seg, 11 de jan de 2021 21:36, Alexander Openkowski notifications@github.com escreveu:

Any chance someone could answer the same question on SO: https://stackoverflow.com/q/57769190 ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spring-projects/spring-framework/issues/22614#issuecomment-758313708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASG6J5TVC73SYF7E3NNRU33SZOKSBANCNFSM4G7SBR7Q .

Comment From: rstoyanchev

I've looked in our docs and indeed as the SO thread says, there is no good answer there. I'm re-opening in order to make a documentation improvement about this.

Comment From: opncow

Thanks a lot for the super quick update!

Comment From: patpatpat123

Many thanks