diff options
author | Sebastian <sebasjm@gmail.com> | 2021-08-05 15:02:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-08-05 15:02:56 -0300 |
commit | 8dbf1270830c67466099baaa3ae7570ce8ec7eb7 (patch) | |
tree | 11631cec330ce91dbe2397076e43011873ff97f4 /packages/taler-wallet-cli/src/integrationtests/harness.ts | |
parent | e073f3a793f85cfd79088fda6b4da626b4456f3f (diff) | |
download | wallet-core-8dbf1270830c67466099baaa3ae7570ce8ec7eb7.tar.xz |
issue #6945: Move instance management API to /management instead of /private
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/harness.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/harness.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/harness.ts b/packages/taler-wallet-cli/src/integrationtests/harness.ts index 285e9aa10..67abdcaca 100644 --- a/packages/taler-wallet-cli/src/integrationtests/harness.ts +++ b/packages/taler-wallet-cli/src/integrationtests/harness.ts @@ -1162,7 +1162,7 @@ export class MerchantApiClient { async changeAuth(auth: MerchantAuthConfiguration): Promise<void> { const baseUrl = this.baseUrl; - const url = new URL("private/auth", baseUrl); + const url = new URL("management/auth", baseUrl); await axios.post(url.href, auth, { headers: this.makeAuthHeader(), }); @@ -1170,7 +1170,7 @@ export class MerchantApiClient { async deleteInstance(instanceId: string) { const baseUrl = this.baseUrl; - const url = new URL(`private/instances/${instanceId}`, this.baseUrl); + const url = new URL(`management/instances/${instanceId}`, this.baseUrl); await axios.delete(url.href, { headers: this.makeAuthHeader(), }); @@ -1178,14 +1178,14 @@ export class MerchantApiClient { async createInstance(req: MerchantInstanceConfig): Promise<void> { const baseUrl = this.baseUrl; - const url = new URL("private/instances", baseUrl); + const url = new URL("management/instances", baseUrl); await axios.post(url.href, req, { headers: this.makeAuthHeader(), }); } async getInstances(): Promise<MerchantInstancesResponse> { - const url = new URL("private/instances", this.baseUrl); + const url = new URL("management/instances", this.baseUrl); const resp = await axios.get(url.href, { headers: this.makeAuthHeader(), }); @@ -1193,7 +1193,7 @@ export class MerchantApiClient { } async getInstanceFullDetails(instanceId: string): Promise<any> { - const url = new URL(`private/instances/${instanceId}`, this.baseUrl); + const url = new URL(`management/instances/${instanceId}`, this.baseUrl); try { const resp = await axios.get(url.href, { headers: this.makeAuthHeader(), @@ -1471,7 +1471,7 @@ export class MerchantService implements MerchantServiceInterface { throw Error("merchant must be running to add instance"); } console.log("adding instance"); - const url = `http://localhost:${this.merchantConfig.httpPort}/private/instances`; + const url = `http://localhost:${this.merchantConfig.httpPort}/management/instances`; const auth = instanceConfig.auth ?? { method: "external" }; await axios.post(url, { auth, |