parent
9424f35c2d
commit
cc02865318
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue