Skip to content
Snippets Groups Projects
Commit 138fac2f authored by Ludovic Claude's avatar Ludovic Claude
Browse files

List my experiments /experiments?mine=true

parent ac73f8f5
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,7 @@ public class ExperimentApi extends WokenClientController { ...@@ -168,7 +168,7 @@ public class ExperimentApi extends WokenClientController {
) { ) {
LOGGER.info("List experiments"); LOGGER.info("List experiments");
return doListExperiments(true, null); return doListExperiments(false, null);
} }
@ApiOperation(value = "list experiments", response = Experiment.class, responseContainer = "List") @ApiOperation(value = "list experiments", response = Experiment.class, responseContainer = "List")
...@@ -186,6 +186,17 @@ public class ExperimentApi extends WokenClientController { ...@@ -186,6 +186,17 @@ public class ExperimentApi extends WokenClientController {
return doListExperiments(false, modelSlug); return doListExperiments(false, modelSlug);
} }
@ApiOperation(value = "list my experiments", response = Experiment.class, responseContainer = "List")
@RequestMapping(method = RequestMethod.GET, params = {"mine"})
public ResponseEntity<String> listMyExperiments(
@ApiParam(value = "mine") @RequestParam boolean mine
) {
LOGGER.info("List my experiments");
return doListExperiments(true, null);
}
private ResponseEntity<String> doListExperiments( private ResponseEntity<String> doListExperiments(
boolean mine, boolean mine,
String modelSlug String modelSlug
......
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