Closed
Description
Hi,
About nested Routes in Web on Reactive Docs ,
https://docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html#nested-routes
says
path("/person", builder -> ... .POST("/person", ...)).build();
it means that API will be POST "/person/person"
,
however this example is how to construct nest path without duplication so I think it is not RESTful.
Is this intentional?
if not, how about to update like
RouterFunction<ServerResponse> route = route()
.path("/person", builder -> builder
.GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
.GET(accept(APPLICATION_JSON), handler::listPeople)
.POST("", handler::createPerson))
.build();