diff --git a/web-services/query/src/main/java/datawave/webservice/query/runner/QueryExecutorBean.java b/web-services/query/src/main/java/datawave/webservice/query/runner/QueryExecutorBean.java index 4044facb91e..ddb81dc9a7d 100644 --- a/web-services/query/src/main/java/datawave/webservice/query/runner/QueryExecutorBean.java +++ b/web-services/query/src/main/java/datawave/webservice/query/runner/QueryExecutorBean.java @@ -2997,6 +2997,26 @@ private void updateQueryParams(Query q, String queryLogicName, String query, Dat } } + /** + * @param queryLogicName + * the logic name + * @param queryParameters + * the query parameters + * @return the generic response + */ + @POST + @Produces({"application/xml", "text/xml", "application/json", "text/yaml", "text/x-yaml", "application/x-yaml", "application/x-protobuf", + "application/x-protostuff"}) + @Path("/{logicName}/validate") + @Interceptors({RequiredInterceptor.class, ResponseInterceptor.class}) + @Timed(name = "dw.query.validateQuery", absolute = true) + public GenericResponse validateQuery(@Required("logicName") @PathParam("logicName") String queryLogicName, + MultivaluedMap queryParameters) { + GenericResponse response = new GenericResponse<>(); + response.setMessages(Collections.singletonList("Query validator coming soon.")); + throw new DatawaveWebApplicationException(new UnsupportedOperationException("Query validator not implemented"), response, 501); + } + /** * Administrator credentials required. Returns list of queries for some other user *