diff --git a/src/services/api/services/ClusterService.ts b/src/services/api/services/ClusterService.ts index b31f270..e839088 100644 --- a/src/services/api/services/ClusterService.ts +++ b/src/services/api/services/ClusterService.ts @@ -2,11 +2,25 @@ /* tslint:disable */ /* eslint-disable */ import type { ClusterAnalysisDto } from '../models/ClusterAnalysisDto'; +import type { ClusterDto } from '../models/ClusterDto'; import type { WellDto } from '../models/WellDto'; import { request as __request } from '../core/request'; export class ClusterService { + /** + * Получает список доступных пользователю кустов + * @returns ClusterDto Success + * @throws ApiError + */ + public static async getClusters(): Promise> { + const result = await __request({ + method: 'GET', + path: `/api/cluster`, + }); + return result.body; + } + /** * Получение доступных пользователю скважин * @param clusterId @@ -18,7 +32,7 @@ clusterId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Cluster/${clusterId}`, + path: `/api/cluster/${clusterId}`, }); return result.body; } @@ -34,7 +48,7 @@ clusterId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Cluster/${clusterId}/Analysis`, + path: `/api/cluster/${clusterId}/Analysis`, }); return result.body; } diff --git a/src/services/api/services/DepositService.ts b/src/services/api/services/DepositService.ts index ff64c74..ca61820 100644 --- a/src/services/api/services/DepositService.ts +++ b/src/services/api/services/DepositService.ts @@ -15,7 +15,7 @@ export class DepositService { public static async getDeposits(): Promise> { const result = await __request({ method: 'GET', - path: `/api/Deposit`, + path: `/api/deposit`, }); return result.body; } @@ -31,7 +31,7 @@ depositId: number, ): Promise> { const result = await __request({ method: 'GET', - path: `/api/Deposit/${depositId}`, + path: `/api/deposit/${depositId}`, }); return result.body; }