From 1fd18795705c82804230fd6ccfb5b531edd4320d Mon Sep 17 00:00:00 2001 From: vaultah <4944562+vaultah@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:47:37 +0100 Subject: [PATCH] Fix query param type in /presto/selector/read/{resourceGroupId} (#209) --- .../java/com/lyft/data/gateway/ha/resource/PrestoResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/src/main/java/com/lyft/data/gateway/ha/resource/PrestoResource.java b/gateway-ha/src/main/java/com/lyft/data/gateway/ha/resource/PrestoResource.java index e8653048..056dacef 100644 --- a/gateway-ha/src/main/java/com/lyft/data/gateway/ha/resource/PrestoResource.java +++ b/gateway-ha/src/main/java/com/lyft/data/gateway/ha/resource/PrestoResource.java @@ -124,7 +124,7 @@ public Response readAllSelectors(@QueryParam("useSchema") @GET @Path("/selector/read/{resourceGroupId}") - public Response readSelector(@QueryParam("resourceGroupId") String resourceGroupIdStr, + public Response readSelector(@PathParam("resourceGroupId") String resourceGroupIdStr, @QueryParam("useSchema") String useSchema) { if (Strings.isNullOrEmpty(resourceGroupIdStr)) { // if query not specified, return all return Response.ok(this.resourceGroupsManager.readAllSelectors(useSchema)).build();