diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/libeufin.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/libeufin.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts index 3cca9f8d7..f90b22f3b 100644 --- a/packages/taler-wallet-cli/src/integrationtests/libeufin.ts +++ b/packages/taler-wallet-cli/src/integrationtests/libeufin.ts @@ -913,6 +913,18 @@ export namespace LibeufinNexusApi { JSON.stringify(response.data, null, 2)); } + export async function getConfig( + libeufinNexusService: LibeufinNexusService, + ): Promise<void> { + const baseUrl = libeufinNexusService.baseUrl; + let url = new URL( + `/config`, + baseUrl, + ); + let response = await axios.get(url.href); + } + + // FIXME: this function should return some structured // object that represents a history. export async function getAccountTransactions( @@ -978,6 +990,19 @@ export namespace LibeufinNexusApi { }); } + export async function getAllPermissions( + libeufinNexusService: LibeufinNexusServiceInterface, + ):Promise<any> { + const baseUrl = libeufinNexusService.baseUrl; + let url = new URL(`/permissions`, baseUrl); + return await axios.get(url.href, { + auth: { + username: "admin", + password: "test", + }, + }); + } + export async function postPermission( libeufinNexusService: LibeufinNexusServiceInterface, req: PostNexusPermissionRequest, |