diff --git a/modules/quarkus-resteasy-jackson/pom.xml b/modules/quarkus-resteasy-jackson/pom.xml new file mode 100644 index 0000000..8842edd --- /dev/null +++ b/modules/quarkus-resteasy-jackson/pom.xml @@ -0,0 +1,54 @@ + + + + twopm.tech.jax-rs-bench + bom + 1.0-SNAPSHOT + ../../pom.xml + + 4.0.0 + quarkus-resteasy-jackson + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + + + + io.quarkus + quarkus-resteasy-jackson + + + + + + ${quarkus.platform.group-id} + quarkus-maven-plugin + ${quarkus.platform.version} + true + + + + build + generate-code + generate-code-tests + + + + + + maven-compiler-plugin + ${compiler-plugin.version} + + ${maven.compiler.parameters} + + + + + \ No newline at end of file diff --git a/modules/quarkus-resteasy-jackson/src/main/java/twopm/tech/bench/jaxrs/TestResource.java b/modules/quarkus-resteasy-jackson/src/main/java/twopm/tech/bench/jaxrs/TestResource.java new file mode 100644 index 0000000..f6bee8f --- /dev/null +++ b/modules/quarkus-resteasy-jackson/src/main/java/twopm/tech/bench/jaxrs/TestResource.java @@ -0,0 +1,33 @@ +package twopm.tech.bench.jaxrs; + +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +@Path("/test") +public class TestResource { + + @GET + @Path("/") + @Produces(MediaType.APPLICATION_JSON) + public String index() { + return "{ \"status\" : \"OK\", \"method\" : \"GET\" }"; + } + + @GET + @Path("/{id}") + @Produces(MediaType.APPLICATION_JSON) + public String get(@PathParam("id") Long id) { + return "{ \"status\" : \"OK\", \"method\" : \"GET\", \"test\" : " + String.valueOf(id) + " }"; + } + + @POST + @Path("/{id}") + @Produces(MediaType.APPLICATION_JSON) + public String post(@PathParam("id") Long id) { + return "{ \"status\" : \"OK\", \"method\" : \"POST\", \"test\" : " + String.valueOf(id) + " }"; + } +} \ No newline at end of file diff --git a/modules/quarkus-resteasy-jsonb/pom.xml b/modules/quarkus-resteasy-jsonb/pom.xml new file mode 100644 index 0000000..1588ebd --- /dev/null +++ b/modules/quarkus-resteasy-jsonb/pom.xml @@ -0,0 +1,54 @@ + + + + twopm.tech.jax-rs-bench + bom + 1.0-SNAPSHOT + ../../pom.xml + + 4.0.0 + quarkus-resteasy-jsonb + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + + + + io.quarkus + quarkus-resteasy-jsonb + + + + + + ${quarkus.platform.group-id} + quarkus-maven-plugin + ${quarkus.platform.version} + true + + + + build + generate-code + generate-code-tests + + + + + + maven-compiler-plugin + ${compiler-plugin.version} + + ${maven.compiler.parameters} + + + + + diff --git a/modules/quarkus-resteasy-jsonb/src/main/java/twopm/tech/bench/jaxrs/TestResource.java b/modules/quarkus-resteasy-jsonb/src/main/java/twopm/tech/bench/jaxrs/TestResource.java new file mode 100644 index 0000000..f6bee8f --- /dev/null +++ b/modules/quarkus-resteasy-jsonb/src/main/java/twopm/tech/bench/jaxrs/TestResource.java @@ -0,0 +1,33 @@ +package twopm.tech.bench.jaxrs; + +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +@Path("/test") +public class TestResource { + + @GET + @Path("/") + @Produces(MediaType.APPLICATION_JSON) + public String index() { + return "{ \"status\" : \"OK\", \"method\" : \"GET\" }"; + } + + @GET + @Path("/{id}") + @Produces(MediaType.APPLICATION_JSON) + public String get(@PathParam("id") Long id) { + return "{ \"status\" : \"OK\", \"method\" : \"GET\", \"test\" : " + String.valueOf(id) + " }"; + } + + @POST + @Path("/{id}") + @Produces(MediaType.APPLICATION_JSON) + public String post(@PathParam("id") Long id) { + return "{ \"status\" : \"OK\", \"method\" : \"POST\", \"test\" : " + String.valueOf(id) + " }"; + } +} \ No newline at end of file diff --git a/modules/rawnetty/pom.xml b/modules/rawnetty/pom.xml index 6b8a836..0551c27 100644 --- a/modules/rawnetty/pom.xml +++ b/modules/rawnetty/pom.xml @@ -1,18 +1,13 @@ - + - twopm.tech - jax-rs-bench + twopm.tech.jax-rs-bench + bom 1.0-SNAPSHOT ../../pom.xml 4.0.0 rawnetty - - com.colobu.rest.nativenetty.Main - io.netty @@ -36,9 +31,9 @@ - ${app.main.class} - ${maven.compile.source} - ${maven.compile.target} + ${app.main.class} + ${maven.compile.source} + ${maven.compile.target} diff --git a/pom.xml b/pom.xml index 10a6a24..fdd5325 100644 --- a/pom.xml +++ b/pom.xml @@ -1,19 +1,27 @@ - - 4.0.0 - twopm.tech - jax-rs-bench - pom - 1.0-SNAPSHOT - - 4.1.69.Final - - 11 - 11 - 11 - UTF-8 - - - modules/rawnetty - - + + 4.0.0 + twopm.tech.jax-rs-bench + bom + 1.0-SNAPSHOT + pom + + modules/rawnetty + modules/quarkus-resteasy-jackson + modules/quarkus-resteasy-jsonb + + + twopm.tech.bench.jaxrs.Bench + 3.8.1 + 11 + true + 11 + 11 + 4.1.69.Final + UTF-8 + UTF-8 + quarkus-bom + io.quarkus.platform + 2.4.0.Final + + \ No newline at end of file