diff --git a/VERSION b/VERSION index a0cd9f0..50e47c8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.0 \ No newline at end of file +3.1.1 \ No newline at end of file diff --git a/src/Moryx.Runtime.Maintenance.Web.UI/src/common/api/CommonRestClient.ts b/src/Moryx.Runtime.Maintenance.Web.UI/src/common/api/CommonRestClient.ts index 9aa1617..748fcca 100644 --- a/src/Moryx.Runtime.Maintenance.Web.UI/src/common/api/CommonRestClient.ts +++ b/src/Moryx.Runtime.Maintenance.Web.UI/src/common/api/CommonRestClient.ts @@ -12,22 +12,22 @@ import RestClientBase from "./RestClientBase"; export default class CommonRestClient extends RestClientBase { public serverTime(): Promise { - return this.get("/time", new ServerTimeResponse()); + return this.get("time", new ServerTimeResponse()); } public applicationInfo(): Promise { - return this.get("/info/application", new ApplicationInformationResponse()); + return this.get("info/application", new ApplicationInformationResponse()); } public applicationLoad(): Promise { - return this.get("/info/application/load", new ApplicationLoadResponse()); + return this.get("info/application/load", new ApplicationLoadResponse()); } public hostInfo(): Promise { - return this.get("/info/system", new HostInformationResponse()); + return this.get("info/system", new HostInformationResponse()); } public systemLoad(): Promise { - return this.get("/info/system/load", new SystemLoadResponse()); + return this.get("info/system/load", new SystemLoadResponse()); } } diff --git a/src/Moryx.Runtime.Maintenance.Web.UI/src/databases/api/DatabasesRestClient.ts b/src/Moryx.Runtime.Maintenance.Web.UI/src/databases/api/DatabasesRestClient.ts index e0361ea..6e3787e 100644 --- a/src/Moryx.Runtime.Maintenance.Web.UI/src/databases/api/DatabasesRestClient.ts +++ b/src/Moryx.Runtime.Maintenance.Web.UI/src/databases/api/DatabasesRestClient.ts @@ -14,50 +14,50 @@ import TestConnectionResponse from "./responses/TestConnectionResponse"; export default class DatabasesRestClient extends RestClientBase { public databaseModels(): Promise { - return this.get("/", []); + return this.get("", []); } public deleteAllDatabaseModels(): Promise { - return this.deleteNoBody("/", new InvocationResponse()); + return this.deleteNoBody("", new InvocationResponse()); } public databaseModel(targetModel: string): Promise { - return this.get("/model/" + targetModel, new DataModel()); + return this.get("model/" + targetModel, new DataModel()); } public saveDatabaseConfig(request: DatabaseConfigModel, targetModel: string): Promise { - return this.post("/model/" + targetModel + "/config", request, new Response()); + return this.post("model/" + targetModel + "/config", request, new Response()); } public testDatabaseConfig(request: DatabaseConfigModel, targetModel: string): Promise { - return this.post("/model/" + targetModel + "/config/test", request, new TestConnectionResponse()); + return this.post("model/" + targetModel + "/config/test", request, new TestConnectionResponse()); } public createDatabase(request: DatabaseConfigModel, targetModel: string): Promise { - return this.post("/model/" + targetModel + "/create", request, new InvocationResponse()); + return this.post("model/" + targetModel + "/create", request, new InvocationResponse()); } public eraseDatabase(request: DatabaseConfigModel, targetModel: string): Promise { - return this.delete("/model/" + targetModel, request, new InvocationResponse()); + return this.delete("model/" + targetModel, request, new InvocationResponse()); } public dumpDatabase(request: DatabaseConfigModel, targetModel: string): Promise { - return this.post("/model/" + targetModel + "/dump", request, new InvocationResponse()); + return this.post("model/" + targetModel + "/dump", request, new InvocationResponse()); } public restoreDatabase(request: RestoreDatabaseRequest, targetModel: string): Promise { - return this.post("/model/" + targetModel + "/restore", request, new InvocationResponse()); + return this.post("model/" + targetModel + "/restore", request, new InvocationResponse()); } public applyMigration(targetModel: string, migrationName: string, request: DatabaseConfigModel): Promise { - return this.post("/model/" + targetModel + "/" + migrationName + "/migrate", request, new DatabaseUpdateSummary()); + return this.post("model/" + targetModel + "/" + migrationName + "/migrate", request, new DatabaseUpdateSummary()); } public rollbackDatabase(targetModel: string, request: DatabaseConfigModel): Promise { - return this.post("/model/" + targetModel + "/rollback", request, new InvocationResponse()); + return this.post("model/" + targetModel + "/rollback", request, new InvocationResponse()); } public executeSetup(targetModel: string, request: ExecuteSetupRequest): Promise { - return this.post("/model/" + targetModel + "/setup", request, new InvocationResponse()); + return this.post("model/" + targetModel + "/setup", request, new InvocationResponse()); } } diff --git a/src/Moryx.Runtime.Maintenance.Web.UI/src/log/api/LogRestClient.ts b/src/Moryx.Runtime.Maintenance.Web.UI/src/log/api/LogRestClient.ts index 4fbed72..ba615b2 100644 --- a/src/Moryx.Runtime.Maintenance.Web.UI/src/log/api/LogRestClient.ts +++ b/src/Moryx.Runtime.Maintenance.Web.UI/src/log/api/LogRestClient.ts @@ -13,27 +13,27 @@ import AddAppenderResponse from "./responses/AddAppenderResponse"; export default class LogRestClient extends RestClientBase { public loggers(): Promise { - return this.get("/", []); + return this.get("", []); } public addRemoteAppender(name: string, minLevel: LogLevel): Promise { const request = new AddRemoteAppenderRequest(); request.MinLevel = minLevel; request.Name = name; - return this.post("/appender", request, new AddAppenderResponse()); + return this.post("appender", request, new AddAppenderResponse()); } public removeRemoteAppender(appenderId: number): Promise { - return this.deleteNoBody("/appender/" + appenderId.toString(), new InvocationResponse()); + return this.deleteNoBody("appender/" + appenderId.toString(), new InvocationResponse()); } public messages(appenderId: number): Promise { - return this.get("/appender/" + appenderId.toString(), []); + return this.get("appender/" + appenderId.toString(), []); } public logLevel(loggerName: string, level: LogLevel): Promise { const request = new SetLogLevelRequest(); request.Level = level; - return this.put("/logger/" + loggerName + "/loglevel", request, new InvocationResponse()); + return this.put("logger/" + loggerName + "/loglevel", request, new InvocationResponse()); } } diff --git a/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/api/ModulesRestClient.ts b/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/api/ModulesRestClient.ts index 26d24e4..3111a93 100644 --- a/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/api/ModulesRestClient.ts +++ b/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/api/ModulesRestClient.ts @@ -14,51 +14,51 @@ import SaveConfigRequest from "./requests/SaveConfigRequest"; export default class ModulesRestClient extends RestClientBase { public modules(): Promise { - return this.get("/", []); + return this.get("", []); } public healthState(moduleName: string): Promise { - return this.get("/module/" + moduleName + "/healthstate", ModuleServerModuleState.Failure); + return this.get("module/" + moduleName + "/healthstate", ModuleServerModuleState.Failure); } public notifications(moduleName: string): Promise { - return this.get("/module/" + moduleName + "/notifications", []); + return this.get("module/" + moduleName + "/notifications", []); } public startModule(moduleName: string): Promise { - return this.postNoBody("/module/" + moduleName + "/start", new Response()); + return this.postNoBody("module/" + moduleName + "/start", new Response()); } public stopModule(moduleName: string): Promise { - return this.postNoBody("/module/" + moduleName + "/stop", new Response()); + return this.postNoBody("module/" + moduleName + "/stop", new Response()); } public reincarnateModule(moduleName: string): Promise { - return this.postNoBody("/module/" + moduleName + "/reincarnate", new Response()); + return this.postNoBody("module/" + moduleName + "/reincarnate", new Response()); } public confirmModuleWarning(moduleName: string): Promise { - return this.postNoBody("/module/" + moduleName + "/confirm", new Response()); + return this.postNoBody("module/" + moduleName + "/confirm", new Response()); } public updateModule(request: ServerModuleModel): Promise { - return this.post("/module/" + request.Name, request, new Response()); + return this.post("module/" + request.Name, request, new Response()); } public moduleConfig(moduleName: string): Promise { - return this.get("/module/" + moduleName + "/config", new Config()); + return this.get("module/" + moduleName + "/config", new Config()); } public saveModuleConfig(moduleName: string, request: SaveConfigRequest): Promise { - return this.post("/module/" + moduleName + "/config", request, new Response(), ModulesRestClient.entryReplacer); + return this.post("module/" + moduleName + "/config", request, new Response(), ModulesRestClient.entryReplacer); } public moduleMethods(moduleName: string): Promise { - return this.get("/module/" + moduleName + "/console", []); + return this.get("module/" + moduleName + "/console", []); } public invokeMethod(moduleName: string, request: MethodEntry): Promise { - return this.post("/module/" + moduleName + "/console", request, new Entry(), ModulesRestClient.entryReplacer); + return this.post("module/" + moduleName + "/console", request, new Entry(), ModulesRestClient.entryReplacer); } private static entryReplacer(key: string, value: any): any {