ege-st commented on code in PR #14197: URL: https://github.com/apache/pinot/pull/14197#discussion_r1802030415
########## pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotClusterConfigs.java: ########## @@ -168,4 +170,74 @@ public SuccessResponse deleteClusterConfig( throw new ControllerApplicationException(LOGGER, errStr, Response.Status.INTERNAL_SERVER_ERROR, e); } } + + @GET + @Path("/cluster/groovy/analyzer/static/default") + @Authorize(targetType = TargetType.CLUSTER, action = Actions.Cluster.GET_GROOVY_SECURITY_CONFIG) + @Produces(MediaType.APPLICATION_JSON) + @ApiOperation(value = "Get the default configuration for Groovy Static analysis", + notes = "Get the default configuration for Groovy static analysis") + @ApiResponses(value = { + @ApiResponse(code = 200, message = "Success"), + @ApiResponse(code = 500, message = "Internal server error") + }) + public GroovyStaticAnalyzerConfig getDefaultGroovyStaticAnalysisConfig() { + return GroovyStaticAnalyzerConfig.createDefault(); + } + + @GET + @Path("/cluster/groovy/analyzer/static/config") Review Comment: perhaps we can assume that anything under `/cluster` is a config and use `cluster/groovy/staticAnalysis`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org