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(); 스크린샷 2022-06-10 오전 11 52 05

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.

스크린샷 2022-06-10 오후 12 04 02

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();

Comment From: poutsma

Thanks for spotting this. It seems like the Servlet version has the same issue.