diff --git a/docs/src/main/asciidoc/rest-data-panache.adoc b/docs/src/main/asciidoc/rest-data-panache.adoc index 333dfeb454ce1..38f0af44a6d28 100644 --- a/docs/src/main/asciidoc/rest-data-panache.adoc +++ b/docs/src/main/asciidoc/rest-data-panache.adoc @@ -334,6 +334,7 @@ You can add additional methods to the generated resources by the REST Data with public interface PeopleResource extends PanacheEntityResource { @GET @Path("/name/{name}") + @Produces("application/json") default List findByName(@PathParam("name") String name) { return Person.find("name = :name", Collections.singletonMap("name", name)).list(); }