|
|
@ -59,7 +59,7 @@ public class DatasourceOperation { |
|
|
|
JSONObject body = new JSONObject(); |
|
|
|
JSONObject body = new JSONObject(); |
|
|
|
body.put("tableId", tableId); |
|
|
|
body.put("tableId", tableId); |
|
|
|
HttpEntity entity = new StringEntity(body.toString(), StandardCharsets.UTF_8); |
|
|
|
HttpEntity entity = new StringEntity(body.toString(), StandardCharsets.UTF_8); |
|
|
|
String res = HttpKits.post(String.format("%s/api/v1/datasource/table/upload/url", ProjectConstants.BASE_URI), headers(), entity); |
|
|
|
String res = HttpKits.post(String.format("%s/api/v1/datasource/upload/url", ProjectConstants.BASE_URI), headers(), entity); |
|
|
|
JSONObject data = new JSONObject(res); |
|
|
|
JSONObject data = new JSONObject(res); |
|
|
|
return data.getString("data"); |
|
|
|
return data.getString("data"); |
|
|
|
} |
|
|
|
} |
|
|
|