Skip to content

Latest commit

 

History

History

api-reactive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Synchronous API

Implementation

  • The controller method returns ResponseEntity<Flux<CourseRepresentation>>
  • The service method returns Flux<Course>

Question: should the Reactive API's controller return type be ResponseEntity<Flux<CourseRepresentation>> or Mono<ResponseEntity<CourseRepresentation>> or Mono<ResponseEntity<Flux<CourseRepresentation>>> ? See Spring WebFlux documentation