Skip to content

Commit

Permalink
Merge pull request #1167 from jedla97/change-resteasy-to-rest
Browse files Browse the repository at this point in the history
Change resteasy to rest in some examples
  • Loading branch information
michalvavrik authored Jun 10, 2024
2 parents 3523842 + 18e3c30 commit 5e7c2cf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/consul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.config</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import org.eclipse.microprofile.config.inject.ConfigProperty;

import io.smallrye.mutiny.Uni;

@Path("/api")
public class GreetingResource {

Expand All @@ -18,8 +20,8 @@ public class GreetingResource {

@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "Hello " + property;
public Uni<String> hello() {
return Uni.createFrom().item("Hello " + property);
}

@GET
Expand Down
4 changes: 0 additions & 4 deletions examples/external-applications/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
<artifactId>examples-external-applications</artifactId>
<name>Quarkus - Test Framework - Examples - External Applications</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus.qe</groupId>
<artifactId>quarkus-test-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pingpong/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus.qe</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

import io.smallrye.mutiny.Uni;

@Path("/ping")
public class PingResource {

@GET
@Produces(MediaType.TEXT_PLAIN)
public String ping() {
return "ping";
public Uni<String> ping() {
return Uni.createFrom().item("ping");
}
}

0 comments on commit 5e7c2cf

Please sign in to comment.