From d3e80ece1926fdf93a866a70394bd4d5c8402709 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 13 Jan 2023 06:10:57 +0100 Subject: [PATCH] Add missing produces in rest-data panache documentation Fix https://github.com/quarkusio/quarkus/issues/30330 --- docs/src/main/asciidoc/rest-data-panache.adoc | 1 + 1 file changed, 1 insertion(+) 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(); }