Skip to content

Commit

Permalink
Merge pull request #30350 from Sgitario/30330
Browse files Browse the repository at this point in the history
Add missing @produces in rest-data panache documentation
  • Loading branch information
geoand authored Jan 13, 2023
2 parents 25593cd + d3e80ec commit c548f91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/main/asciidoc/rest-data-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ You can add additional methods to the generated resources by the REST Data with
public interface PeopleResource extends PanacheEntityResource<Person, Long> {
@GET
@Path("/name/{name}")
@Produces("application/json")
default List<Person> findByName(@PathParam("name") String name) {
return Person.find("name = :name", Collections.singletonMap("name", name)).list();
}
Expand Down

0 comments on commit c548f91

Please sign in to comment.