From f8b7d00ca33a058accb3135c003ece71a3765b85 Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Mon, 4 Dec 2017 15:34:40 +0100
Subject: [PATCH] fix get mining query response

---
 src/main/java/eu/hbp/mip/controllers/VariablesApi.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/eu/hbp/mip/controllers/VariablesApi.java b/src/main/java/eu/hbp/mip/controllers/VariablesApi.java
index a08f7986c..d4ab18e7f 100644
--- a/src/main/java/eu/hbp/mip/controllers/VariablesApi.java
+++ b/src/main/java/eu/hbp/mip/controllers/VariablesApi.java
@@ -143,7 +143,7 @@ public class VariablesApi {
     @ApiOperation(value = "Get query for histograms", response = Object.class)
     @Cacheable("vars_histogram_query")
     @RequestMapping(value = "/{code}/histogram_query", method = RequestMethod.GET)
-    public ResponseEntity<String> getHistogramQuery(
+    public ResponseEntity<MiningQuery> getHistogramQuery(
             @ApiParam(value = "code", required = true) @PathVariable("code") String code
     )  {
         LOGGER.info("Get query for histograms");
@@ -162,7 +162,7 @@ public class VariablesApi {
         query.setGrouping(groupings);
         query.setAlgorithm(new Algorithm("histograms", "Histograms", false));
 
-        return ResponseEntity.ok(histogramGroupings);
+        return ResponseEntity.ok(query);
     }
 
 
-- 
GitLab