From 8403d95abba58e5dc6411301c382950a5251d318 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Tue, 4 Oct 2022 16:11:19 +0100 Subject: [PATCH] Add Sync endpoint --- .../config/internal-api/TestConfiguration/applications.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa-core/src/config/internal-api/TestConfiguration/applications.ts b/qa-core/src/config/internal-api/TestConfiguration/applications.ts index 10e4a6657b..4247b06d2a 100644 --- a/qa-core/src/config/internal-api/TestConfiguration/applications.ts +++ b/qa-core/src/config/internal-api/TestConfiguration/applications.ts @@ -50,4 +50,11 @@ export default class AppApi { const json = await response.json() return [response, json.data] } + + async sync(appId: string): Promise<[Response, any]> { + const response = await this.api.post(`/applications/${appId}/sync`) + const json = await response.json() + return [response, json] + } + }