Skip to content
Snippets Groups Projects
Commit 9e850a14 authored by stevereis's avatar stevereis
Browse files

Added missign impl for experiments

parent b70a67e0
No related branches found
Tags v1.1.0-beta.1
No related merge requests found
import { HttpService } from "@nestjs/axios";
import { Request, response } from "express";
import { Request } from "express";
import { map, Observable } from "rxjs";
import { IEngineOptions, IEngineService } from "src/engine/engine.interfaces";
......@@ -18,9 +18,8 @@ export default class ExaremeService implements IEngineService {
);
}
deleteExperiment(uuid: string, request: Request): Observable<string> {
deleteExperiment(uuid: string): Observable<string> {
const path = this.options.baseurl + `experiments/${uuid}`;
//request.query
return this.httpService.delete(path).pipe(
map(response => response.data)
......@@ -30,19 +29,25 @@ export default class ExaremeService implements IEngineService {
editExperiment(uuid: string, request: Request): Observable<string> {
const path = this.options.baseurl + `experiments/${uuid}`;
throw new Error("Method not implemented.");
return this.httpService.post(path,request.body).pipe(
map(response => response.data)
)
}
startExperimentTransient(request: Request): Observable<string> {
const path = this.options.baseurl + "experiments";
const path = this.options.baseurl + "experiments/transient";
throw new Error("Method not implemented.");
return this.httpService.post(path, request.body).pipe(
map(response => response.data)
)
}
startExperiment(request: Request): Observable<string> {
const path = this.options.baseurl + "experiments/transient";
const path = this.options.baseurl + "experiments";
throw new Error("Method not implemented.");
return this.httpService.post(path, request.body).pipe(
map(response => response.data)
)
}
getExperiments(): Observable<string> {
......
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