Skip to content

Commit

Permalink
Fix code example for JSON serialisation in rest guide
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 committed Jul 10, 2024
1 parent 57e1bd6 commit 656b38b
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 656b38b

Please sign in to comment.