Formatting

Jens Pelzetter 2020-07-28 20:24:33 +02:00
parent 0b621bf7b4
commit f63b048826
1 changed files with 24 additions and 16 deletions

View File

@ -205,9 +205,8 @@ export class CategorizationApiClient {
): Promise<ListView<Category>> { ): Promise<ListView<Category>> {
try { try {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${this.#CATEGORIES_API_PREFIX}/${domain}/${path}`,
this.#CATEGORIES_API_PREFIX { limit: limit.toString(), offset: offset.toString() }
}/${domain}/${path}?limit=${limit}&offset=${offset}`
); );
if (response.ok) { if (response.ok) {
@ -246,9 +245,11 @@ export class CategorizationApiClient {
): Promise<ListView<Category>> { ): Promise<ListView<Category>> {
try { try {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${this.#CATEGORIES_API_PREFIX}/ID-${categoryId}`,
this.#CATEGORIES_API_PREFIX {
}/ID-${categoryId}?limit=${limit}&offset=${offset}` limit: limit.toString(),
offset: offset.toString(),
}
); );
if (response.ok) { if (response.ok) {
@ -287,9 +288,11 @@ export class CategorizationApiClient {
): Promise<ListView<Category>> { ): Promise<ListView<Category>> {
try { try {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${this.#CATEGORIES_API_PREFIX}/UUID-${uuid}`,
this.#CATEGORIES_API_PREFIX {
}/UUID-${uuid}?limit=${limit}&offset=${offset}` limit: limit.toString(),
offset: offset.toString(),
}
); );
if (response.ok) { if (response.ok) {
@ -409,9 +412,8 @@ export class CategorizationApiClient {
): Promise<ListView<Categorization>> { ): Promise<ListView<Categorization>> {
try { try {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${this.#CATEGORIES_API_PREFIX}/$domain/${path}/@objects`,
this.#CATEGORIES_API_PREFIX { limit: limit.toString(), offset: offset.toString() }
}/$domain/${path}/@objects?limit=${limit}&offset=${offset}`
); );
if (response.ok) { if (response.ok) {
@ -450,9 +452,11 @@ export class CategorizationApiClient {
): Promise<ListView<Categorization>> { ): Promise<ListView<Categorization>> {
try { try {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${this.#CATEGORIES_API_PREFIX}/ID-${categoryId}/@objects`,
this.#CATEGORIES_API_PREFIX {
}/ID-${categoryId}/@objects?limit=${limit}&offset=${offset}` limit: limit.toString(),
offset: offset.toString(),
}
); );
if (response.ok) { if (response.ok) {
@ -493,7 +497,11 @@ export class CategorizationApiClient {
const response: ApiResponse = await this.#apiClient.get( const response: ApiResponse = await this.#apiClient.get(
`${ `${
this.#CATEGORIES_API_PREFIX this.#CATEGORIES_API_PREFIX
}/UUID-${uuid}/@objects?limit=${limit}&offset=${offset}` }/UUID-${uuid}/@objects`,
{
limit: limit.toString(),
offset: offset.toString()
}
); );
if (response.ok) { if (response.ok) {