blob: 21e971dfe1c0c7ec7cdfb3d333ea46d3ccae5838 [file] [log] [blame]
package controllers;
import play.data.Form;
import play.mvc.Controller;
import play.mvc.Result;
import util.Constants;
import util.APICall;
import util.APICall.ResponseType;
import views.html.climate.*;
import com.fasterxml.jackson.databind.JsonNode;
public class AnalyticsController extends Controller{
public static Result getKnowledgeGraph() {
JsonNode response = APICall.callAPI("http://einstein.sv.cmu.edu:9035/analytics/getAllDatasetAndUserWithCount/json");
String resStr = response.toString();
return ok(knowledgeGraph.render(resStr));
}
}