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
Commits
eed96246
Unverified
Commit
eed96246
authored
4 years ago
by
ThanKarab
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #12 from HBPMedical/dev-statistics-v2
descriptive_stats_v2 method
parents
0e3a23bd
83c8e06b
No related branches found
Branches containing commit
Tags
6.1.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/eu/hbp/mip/controllers/MiningApi.java
+18
-0
18 additions, 0 deletions
src/main/java/eu/hbp/mip/controllers/MiningApi.java
with
18 additions
and
0 deletions
src/main/java/eu/hbp/mip/controllers/MiningApi.java
+
18
−
0
View file @
eed96246
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment