CRUD names the four operations commonly exposed by a REST API over a persistent database entity: create, read, update, and delete. In Quarkus, REST Data extensions generate JAX-RS resources for Panache entities, reducing repeated endpoint code. section 7.4 section 7.0
A generated CRUD resource typically combines these application pieces:
- A Panache entity representing the persistent record. section 7.4
- The quarkus-hibernate-orm-rest-data-panache extension for generated REST operations. section 7.4
- A database driver such as quarkus-jdbc-postgresql and a JSON serialization extension such as quarkus-rest-jackson. section 7.4
- An interface extending PanacheEntityResource<Entity, Id>, optionally customized with a root path. section 7.4
Reservation CRUD resource
A ReservationCrudResource interface extending PanacheEntityResource<Reservation, Long> generates REST access for reservations. Applying @ResourceProperties(path = "/admin/reservation") changes its root path, while Swagger UI can display the generated resource. section 7.4
Listing 7.21 Adding REST Data extensions to the Reservation service
$ quarkus ext add quarkus-hibernate-orm-rest-data-panache \ quarkus-jdbc-postgresql quarkus-rest-jackson Looking for the newly published extensions in registry.quarkus.io [SUCCESS] ✅ Extension io.quarkus:quarkus-hibernate-orm-rest-data-panache has been installedExtension io.quarkus:quarkus-jdbc-postgresql was already installed
Extension io.quarkus:quarkus-rest-jackson was already installed
The extension command shows the practical setup: install REST Data, confirm the PostgreSQL JDBC driver, and add REST JSON support. section 7.4
Extension io.quarkus:quarkus-jdbc-postgresql was already installed










