Skip to content
Snippets Groups Projects
Unverified Commit eed96246 authored by ThanKarab's avatar ThanKarab Committed by GitHub
Browse files

Merge pull request #12 from HBPMedical/dev-statistics-v2

descriptive_stats_v2 method
parents 0e3a23bd 83c8e06b
No related branches found
Tags 6.1.3
No related merge requests found
......@@ -84,6 +84,24 @@ public class MiningApi {
}
}
@ApiOperation(value = "Create a descriptive statistic on Exareme", response = String.class)
@RequestMapping(value = "/descriptive_stats_v2", method = RequestMethod.POST)
public ResponseEntity runExaremeDescriptiveStatsV2(@RequestBody List<HashMap<String, String>> queryList) {
UserActionLogging.LogUserAction(userInfo.getUser().getUsername(), "Run descriptive stats v2", "");
String query = gson.toJson(queryList);
String url = queryExaremeUrl + "/" + "DESCRIPTIVE_STATS_v2";
try {
StringBuilder results = new StringBuilder();
int code = HTTPUtil.sendPost(url, query, results);
return ResponseEntity.ok(gson.toJson(results.toString()));
} catch (IOException e) {
return new ResponseEntity<>("Not found", HttpStatus.BAD_REQUEST);
}
}
@ApiOperation(value = "Check if a formula is valid", response = String.class)
@RequestMapping(value = "/checkFormula", method = RequestMethod.POST)
public ResponseEntity checkFormulaValidity(String formula) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment