Skip to content

Commit 405e592

Browse files
committed
Merge branch '5.3.x'
2 parents 1e5f4f8 + 27738cc commit 405e592

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/docs/asciidoc/web/webflux-functional.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,10 @@ RouterFunction<ServerResponse> route = route()
590590
.path("/person", builder -> builder // <1>
591591
.GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
592592
.GET(accept(APPLICATION_JSON), handler::listPeople)
593-
.POST("/person", handler::createPerson))
593+
.POST(handler::createPerson))
594594
.build();
595595
----
596-
<1> Note that second parameter of `path` is a consumer that takes the a router builder.
596+
<1> Note that second parameter of `path` is a consumer that takes the router builder.
597597

598598
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
599599
.Kotlin
@@ -602,7 +602,7 @@ RouterFunction<ServerResponse> route = route()
602602
"/person".nest {
603603
GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
604604
GET(accept(APPLICATION_JSON), handler::listPeople)
605-
POST("/person", handler::createPerson)
605+
POST(handler::createPerson)
606606
}
607607
}
608608
----
@@ -620,7 +620,7 @@ We can further improve by using the `nest` method together with `accept`:
620620
.nest(accept(APPLICATION_JSON), b2 -> b2
621621
.GET("/{id}", handler::getPerson)
622622
.GET(handler::listPeople))
623-
.POST("/person", handler::createPerson))
623+
.POST(handler::createPerson))
624624
.build();
625625
----
626626
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
@@ -631,7 +631,7 @@ We can further improve by using the `nest` method together with `accept`:
631631
accept(APPLICATION_JSON).nest {
632632
GET("/{id}", handler::getPerson)
633633
GET(handler::listPeople)
634-
POST("/person", handler::createPerson)
634+
POST(handler::createPerson)
635635
}
636636
}
637637
}
@@ -766,7 +766,7 @@ For instance, consider the following example:
766766
.before(request -> ServerRequest.from(request) // <1>
767767
.header("X-RequestHeader", "Value")
768768
.build()))
769-
.POST("/person", handler::createPerson))
769+
.POST(handler::createPerson))
770770
.after((request, response) -> logResponse(response)) // <2>
771771
.build();
772772
----
@@ -784,7 +784,7 @@ For instance, consider the following example:
784784
ServerRequest.from(it)
785785
.header("X-RequestHeader", "Value").build()
786786
}
787-
POST("/person", handler::createPerson)
787+
POST(handler::createPerson)
788788
after { _, response -> // <2>
789789
logResponse(response)
790790
}
@@ -815,7 +815,7 @@ The following example shows how to do so:
815815
.nest(accept(APPLICATION_JSON), b2 -> b2
816816
.GET("/{id}", handler::getPerson)
817817
.GET(handler::listPeople))
818-
.POST("/person", handler::createPerson))
818+
.POST(handler::createPerson))
819819
.filter((request, next) -> {
820820
if (securityManager.allowAccessTo(request.path())) {
821821
return next.handle(request);
@@ -835,7 +835,7 @@ The following example shows how to do so:
835835
("/person" and accept(APPLICATION_JSON)).nest {
836836
GET("/{id}", handler::getPerson)
837837
GET("", handler::listPeople)
838-
POST("/person", handler::createPerson)
838+
POST(handler::createPerson)
839839
filter { request, next ->
840840
if (securityManager.allowAccessTo(request.path())) {
841841
next(request)

src/docs/asciidoc/web/webmvc-functional.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ RouterFunction<ServerResponse> route = route()
612612
.path("/person", builder -> builder // <1>
613613
.GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
614614
.GET(accept(APPLICATION_JSON), handler::listPeople)
615-
.POST("/person", handler::createPerson))
615+
.POST(handler::createPerson))
616616
.build();
617617
----
618618
<1> Note that second parameter of `path` is a consumer that takes the router builder.
@@ -626,7 +626,7 @@ RouterFunction<ServerResponse> route = route()
626626
"/person".nest {
627627
GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
628628
GET(accept(APPLICATION_JSON), handler::listPeople)
629-
POST("/person", handler::createPerson)
629+
POST(handler::createPerson)
630630
}
631631
}
632632
----
@@ -644,7 +644,7 @@ We can further improve by using the `nest` method together with `accept`:
644644
.nest(accept(APPLICATION_JSON), b2 -> b2
645645
.GET("/{id}", handler::getPerson)
646646
.GET(handler::listPeople))
647-
.POST("/person", handler::createPerson))
647+
.POST(handler::createPerson))
648648
.build();
649649
----
650650
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
@@ -657,7 +657,7 @@ We can further improve by using the `nest` method together with `accept`:
657657
accept(APPLICATION_JSON).nest {
658658
GET("/{id}", handler::getPerson)
659659
GET("", handler::listPeople)
660-
POST("/person", handler::createPerson)
660+
POST(handler::createPerson)
661661
}
662662
}
663663
}
@@ -779,7 +779,7 @@ For instance, consider the following example:
779779
.before(request -> ServerRequest.from(request) // <1>
780780
.header("X-RequestHeader", "Value")
781781
.build()))
782-
.POST("/person", handler::createPerson))
782+
.POST(handler::createPerson))
783783
.after((request, response) -> logResponse(response)) // <2>
784784
.build();
785785
----
@@ -800,7 +800,7 @@ For instance, consider the following example:
800800
.header("X-RequestHeader", "Value").build()
801801
}
802802
}
803-
POST("/person", handler::createPerson)
803+
POST(handler::createPerson)
804804
after { _, response -> // <2>
805805
logResponse(response)
806806
}
@@ -830,7 +830,7 @@ The following example shows how to do so:
830830
.nest(accept(APPLICATION_JSON), b2 -> b2
831831
.GET("/{id}", handler::getPerson)
832832
.GET(handler::listPeople))
833-
.POST("/person", handler::createPerson))
833+
.POST(handler::createPerson))
834834
.filter((request, next) -> {
835835
if (securityManager.allowAccessTo(request.path())) {
836836
return next.handle(request);
@@ -852,7 +852,7 @@ The following example shows how to do so:
852852
("/person" and accept(APPLICATION_JSON)).nest {
853853
GET("/{id}", handler::getPerson)
854854
GET("", handler::listPeople)
855-
POST("/person", handler::createPerson)
855+
POST(handler::createPerson)
856856
filter { request, next ->
857857
if (securityManager.allowAccessTo(request.path())) {
858858
next(request)

0 commit comments

Comments
 (0)