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();