GAP issue/bug : How to add openapi annotation to RouterFunctions.route() / webflux ?
Closed this issue · 1 comments
anborg commented
I have the below webflux implementation.
How/Where to add openapi annotation for this?
@Configuration
public class RxRouteConfig {
@Bean
public RouterFunction<ServerResponse> routerFunction(RxService rxService, Service service) {
return RouterFunctions.route(
RequestPredicates.GET("/webflux/customer/all"), rxService::getAllCustomers) //.and(accept(MediaType.APPLICATION_JSON))
.andRoute(GET("/webflux/customer/{id}"), rxService::findCustomerById)
.andRoute(POST("/webflux/customers/similar").and(contentType(MediaType.APPLICATION_JSON)), rxService::findCustomerLike)
.andRoute(GET("/webflux/customer/{id}/events"), rxService::getEvents)
;
}
}bnasslahsen commented
Spring-weblfux with Functional Endpoints, is not yet supported.
It's clearly mentionned on the welcome page:
It will be available in a future release...