Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Merge requests
!12
descriptive_stats_v2 method
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
descriptive_stats_v2 method
dev-statistics-v2
into
master
Overview
2
Commits
1
Pipelines
0
Changes
1
Merged
Kostas FILIPPOPOLITIS
requested to merge
dev-statistics-v2
into
master
4 years ago
Overview
2
Commits
1
Pipelines
0
Changes
1
Expand
Created by: nicedexter
Descriptive stats method name update
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
83c8e06b
1 commit,
2 years ago
1 file
+
18
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/eu/hbp/mip/controllers/MiningApi.java
+
18
−
0
Options
@@ -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
)
{