From cc02865318c772aae73843ba14145af919c204fb Mon Sep 17 00:00:00 2001 From: Jens Pelzetter Date: Tue, 28 Jul 2020 20:24:33 +0200 Subject: [PATCH] Formatting Former-commit-id: f63b04882604f3f0e46f412b21692aad7a5a0339 --- .../typescript/clients/categorization-api.ts | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/ccm-core-apiclient/src/main/typescript/clients/categorization-api.ts b/ccm-core-apiclient/src/main/typescript/clients/categorization-api.ts index c7ed2e4a7..00832f931 100644 --- a/ccm-core-apiclient/src/main/typescript/clients/categorization-api.ts +++ b/ccm-core-apiclient/src/main/typescript/clients/categorization-api.ts @@ -205,9 +205,8 @@ export class CategorizationApiClient { ): Promise> { try { const response: ApiResponse = await this.#apiClient.get( - `${ - this.#CATEGORIES_API_PREFIX - }/${domain}/${path}?limit=${limit}&offset=${offset}` + `${this.#CATEGORIES_API_PREFIX}/${domain}/${path}`, + { limit: limit.toString(), offset: offset.toString() } ); if (response.ok) { @@ -246,9 +245,11 @@ export class CategorizationApiClient { ): Promise> { try { const response: ApiResponse = await this.#apiClient.get( - `${ - this.#CATEGORIES_API_PREFIX - }/ID-${categoryId}?limit=${limit}&offset=${offset}` + `${this.#CATEGORIES_API_PREFIX}/ID-${categoryId}`, + { + limit: limit.toString(), + offset: offset.toString(), + } ); if (response.ok) { @@ -287,9 +288,11 @@ export class CategorizationApiClient { ): Promise> { try { const response: ApiResponse = await this.#apiClient.get( - `${ - this.#CATEGORIES_API_PREFIX - }/UUID-${uuid}?limit=${limit}&offset=${offset}` + `${this.#CATEGORIES_API_PREFIX}/UUID-${uuid}`, + { + limit: limit.toString(), + offset: offset.toString(), + } ); if (response.ok) { @@ -409,9 +412,8 @@ export class CategorizationApiClient { ): Promise> { try { const response: ApiResponse = await this.#apiClient.get( - `${ - this.#CATEGORIES_API_PREFIX - }/$domain/${path}/@objects?limit=${limit}&offset=${offset}` + `${this.#CATEGORIES_API_PREFIX}/$domain/${path}/@objects`, + { limit: limit.toString(), offset: offset.toString() } ); if (response.ok) { @@ -450,9 +452,11 @@ export class CategorizationApiClient { ): Promise> { try { const response: ApiResponse = await this.#apiClient.get( - `${ - this.#CATEGORIES_API_PREFIX - }/ID-${categoryId}/@objects?limit=${limit}&offset=${offset}` + `${this.#CATEGORIES_API_PREFIX}/ID-${categoryId}/@objects`, + { + limit: limit.toString(), + offset: offset.toString(), + } ); if (response.ok) { @@ -493,7 +497,11 @@ export class CategorizationApiClient { const response: ApiResponse = await this.#apiClient.get( `${ this.#CATEGORIES_API_PREFIX - }/UUID-${uuid}/@objects?limit=${limit}&offset=${offset}` + }/UUID-${uuid}/@objects`, + { + limit: limit.toString(), + offset: offset.toString() + } ); if (response.ok) {