mcvsubbu commented on a change in pull request #6507: URL: https://github.com/apache/incubator-pinot/pull/6507#discussion_r571318931
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java ########## @@ -121,11 +132,19 @@ @Produces(MediaType.APPLICATION_JSON) @Path("/tables") @ApiOperation(value = "Adds a table", notes = "Adds a table") - public SuccessResponse addTable(String tableConfigStr) { + public SuccessResponse addTable(String tableConfigStr, @Context HttpHeaders httpHeaders, @Context Request request) { // TODO introduce a table config ctor with json string. TableConfig tableConfig; + String tableName; try { tableConfig = JsonUtils.stringToObject(tableConfigStr, TableConfig.class); + + // validate permission Review comment: Got it, thanks ---------------------------------------------------------------- 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. 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