diff --git a/docs/src/main/asciidoc/rest.adoc b/docs/src/main/asciidoc/rest.adoc index 5531dbb5c0001..f40b865e34917 100644 --- a/docs/src/main/asciidoc/rest.adoc +++ b/docs/src/main/asciidoc/rest.adoc @@ -1420,10 +1420,11 @@ public class Person { @SecureField(rolesAllowed = "${role:admin}") <1> private String address; - public Person(Long id, String first, String last) { + public Person(Long id, String first, String last, String address) { this.id = id; this.first = first; this.last = last; + this.address = address; } public Long getId() { @@ -1466,7 +1467,7 @@ import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.Response; @Path("person") -public class Person { +public class PersonResource { @Path("{id}") @GET