From 277cc25472ac43aa54f3d54924a0030ba6c4ba3e Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Wed, 10 Jul 2024 16:23:21 +0200 Subject: [PATCH] Fix code example for JSON serialisation in rest guide (cherry picked from commit 656b38be0b014f469ef232d34047211b3c5383f1) --- docs/src/main/asciidoc/rest.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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