Skip to content

Commit

Permalink
Merge pull request #41814 from jedla97/fix-code-example
Browse files Browse the repository at this point in the history
Fix code example for JSON serialisation in rest guide
  • Loading branch information
gsmet authored Jul 10, 2024
2 parents cbc6eac + 656b38b commit 6fe7d62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/main/asciidoc/rest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6fe7d62

Please sign in to comment.