diff --git a/config/_default/config.toml b/config/_default/config.toml index d8a230a4..bb4ede3d 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -78,7 +78,7 @@ lab_code_basedir = "/code/" solution_code_basedir = "/solution/" #versions -quarkusVersion = "3.4.3" +quarkusVersion = "3.10.0" mutinyVersion = "2.5.1" confluentKafkaAvroVersion = "7.5.1" openJdkImage = "registry.access.redhat.com/ubi8/openjdk-17:1.16" diff --git a/content/en/docs/02.0/22_implementing-rest.md b/content/en/docs/02.0/22_implementing-rest.md index 5a9650ba..c93d7dd9 100644 --- a/content/en/docs/02.0/22_implementing-rest.md +++ b/content/en/docs/02.0/22_implementing-rest.md @@ -35,7 +35,7 @@ Jackson functionalities for our REST interfaces. To add an extension to your existing Quarkus application simply use: ```bash -./mvnw quarkus:add-extension -Dextensions="quarkus-resteasy-reactive-jackson" +./mvnw quarkus:add-extension -Dextensions="quarkus-rest-jackson" ``` To see the available extensions you can use: @@ -106,7 +106,7 @@ mvn io.quarkus:quarkus-maven-plugin:{{% param "quarkusVersion" %}}:create \ -DprojectArtifactId=quarkus-rest-data-consumer \ -DclassName="ch.puzzle.quarkustechlab.restconsumer.boundary.DataConsumerResource" \ -Dpath="/data" \ - -Dextensions="rest-client-reactive-jackson" + -Dextensions="rest-rest-jackson" ``` @@ -208,6 +208,6 @@ When you have both microservices running, try sending a request to the consumer. {{% details title="Hint" %}} -To get the full json output you have to add the `resteasy-reactive-jackson` extension and make sure the media type is set to json. +To get the full json output you have to add the `rest-jackson` extension and make sure the media type is set to json. {{% /details %}} diff --git a/content/en/docs/02.0/25_reactive-programming.md b/content/en/docs/02.0/25_reactive-programming.md index 3c29ecb0..86e8ef05 100644 --- a/content/en/docs/02.0/25_reactive-programming.md +++ b/content/en/docs/02.0/25_reactive-programming.md @@ -26,7 +26,7 @@ We will start similar to the previous example with a producer which exposes data ### Task {{% param sectionnumber %}}.1.1: Create producer project -Start by creating a project `quarkus-reactive-rest-producer`. Add the extensions `quarkus-resteasy-reactive-jackson` to the project. +Start by creating a project `quarkus-reactive-rest-producer`. Add the extensions `quarkus-rest-jackson` to the project. {{% details title="Hint" %}} diff --git a/solution/quarkus-reactive-rest-consumer/pom.xml b/solution/quarkus-reactive-rest-consumer/pom.xml index 03455f0b..94e71af0 100644 --- a/solution/quarkus-reactive-rest-consumer/pom.xml +++ b/solution/quarkus-reactive-rest-consumer/pom.xml @@ -6,15 +6,15 @@ quarkus-reactive-rest-consumer 1.0.0 - 3.11.0 - 17 + 3.12.1 + 21 UTF-8 UTF-8 quarkus-bom io.quarkus.platform - 3.4.2 + 3.10.0 true - 3.1.2 + 3.2.3 @@ -30,11 +30,11 @@ io.quarkus - quarkus-resteasy-reactive-jackson + quarkus-rest-jackson io.quarkus - quarkus-rest-client-reactive-jackson + quarkus-rest-client-jackson io.quarkus @@ -42,7 +42,7 @@ io.quarkus - quarkus-resteasy-reactive + quarkus-rest io.quarkus @@ -122,7 +122,8 @@ false - native + true + false diff --git a/solution/quarkus-reactive-rest-consumer/src/main/java/ch/puzzle/quarkustechlab/reactiverest/consumer/boundary/DataResource.java b/solution/quarkus-reactive-rest-consumer/src/main/java/ch/puzzle/quarkustechlab/reactiverest/consumer/boundary/DataResource.java index 9639ef3e..9cea935c 100644 --- a/solution/quarkus-reactive-rest-consumer/src/main/java/ch/puzzle/quarkustechlab/reactiverest/consumer/boundary/DataResource.java +++ b/solution/quarkus-reactive-rest-consumer/src/main/java/ch/puzzle/quarkustechlab/reactiverest/consumer/boundary/DataResource.java @@ -8,19 +8,13 @@ import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; -@Path("/hello") +@Path("/data") public class DataResource { @Inject @RestClient DataService dataService; - @GET - @Produces(MediaType.TEXT_PLAIN) - public String hello() { - return "Hello from RESTEasy Reactive"; - } - @GET @Produces(MediaType.APPLICATION_JSON) public Uni findAll() { diff --git a/solution/quarkus-reactive-rest-producer/pom.xml b/solution/quarkus-reactive-rest-producer/pom.xml index 3fa90b98..d3761c57 100644 --- a/solution/quarkus-reactive-rest-producer/pom.xml +++ b/solution/quarkus-reactive-rest-producer/pom.xml @@ -6,15 +6,15 @@ quarkus-reactive-rest-producer 1.0.0 - 3.11.0 + 3.12.1 17 UTF-8 UTF-8 quarkus-bom io.quarkus.platform - 3.4.2 + 3.10.0 true - 3.1.2 + 3.2.3 @@ -30,7 +30,7 @@ io.quarkus - quarkus-resteasy-reactive-jackson + quarkus-rest-jackson io.quarkus @@ -38,7 +38,7 @@ io.quarkus - quarkus-resteasy-reactive + quarkus-rest io.quarkus @@ -122,7 +122,8 @@ false - native + true + false