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) {