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
(cherry picked from commit 656b38b)
  • Loading branch information
jedla97 authored and gsmet committed Jul 16, 2024
1 parent 3b3dc13 commit 277cc25
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 277cc25

Please sign in to comment.