From b5cafca2c0ae6f362127571350fc528ff444c233 Mon Sep 17 00:00:00 2001 From: Om Mishra <32200996+mishraomp@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:28:04 -0700 Subject: [PATCH] feat: quarkus move to rest (#84) * chore(deps): update maven all non-major dependencies * few improvements * few improvements --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- pom.xml | 4 ++-- src/main/java/ca/bc/gov/nrs/api/Application.java | 4 ---- .../java/ca/bc/gov/nrs/api/service/FileUploadService.java | 8 -------- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 src/main/java/ca/bc/gov/nrs/api/service/FileUploadService.java diff --git a/pom.xml b/pom.xml index 01842c4..206d2e7 100644 --- a/pom.xml +++ b/pom.xml @@ -30,11 +30,11 @@ io.quarkus - quarkus-resteasy + quarkus-rest io.quarkus - quarkus-resteasy-jackson + quarkus-rest-jackson io.quarkus diff --git a/src/main/java/ca/bc/gov/nrs/api/Application.java b/src/main/java/ca/bc/gov/nrs/api/Application.java index 154189f..3070a0b 100644 --- a/src/main/java/ca/bc/gov/nrs/api/Application.java +++ b/src/main/java/ca/bc/gov/nrs/api/Application.java @@ -44,10 +44,6 @@ public Response executeSQL(@HeaderParam("X-API-Key") String xApiKey, @QueryParam } if (payload.queryType() == QueryType.READ) { var result = queryExecutorService.executeQuery(payload.sql()); - if (uploadToS3 != null) { - // TODO add upload to S3 - // queryExecutorService.uploadToS3(result); - } return Response.ok(result).build(); } queryExecutorService.mutateState(payload.sql()); diff --git a/src/main/java/ca/bc/gov/nrs/api/service/FileUploadService.java b/src/main/java/ca/bc/gov/nrs/api/service/FileUploadService.java deleted file mode 100644 index b839b6f..0000000 --- a/src/main/java/ca/bc/gov/nrs/api/service/FileUploadService.java +++ /dev/null @@ -1,8 +0,0 @@ -package ca.bc.gov.nrs.api.service; - -import jakarta.enterprise.context.ApplicationScoped; - -@ApplicationScoped -public class FileUploadService { - -}