31 lines
909 B
TypeScript
31 lines
909 B
TypeScript
![]() |
import { getTariffParams, tariffBody } from "./inputs";
|
||
|
import { getTariffReponse, getTariffsReponse, createTariffReponse, replaceTariffReponse } from "./responses";
|
||
|
|
||
|
import type { SwaggerSchema } from "@/types/swagger.type";
|
||
|
|
||
|
export const getTariffSchema: SwaggerSchema = {
|
||
|
summary: "Получение тарифа",
|
||
|
tags: ["tariff"],
|
||
|
params: getTariffParams,
|
||
|
response: getTariffReponse,
|
||
|
};
|
||
|
|
||
|
export const getTariffsSchema: SwaggerSchema = {
|
||
|
summary: "Получение списка тарифов",
|
||
|
tags: ["tariff"],
|
||
|
response: getTariffsReponse,
|
||
|
};
|
||
|
|
||
|
export const createTariffsSchema: SwaggerSchema = {
|
||
|
summary: "Создание тарифа",
|
||
|
tags: ["tariff"],
|
||
|
body: tariffBody,
|
||
|
response: createTariffReponse,
|
||
|
};
|
||
|
export const replaceTariffsSchema: SwaggerSchema = {
|
||
|
summary: "Замена тарифа",
|
||
|
tags: ["tariff"],
|
||
|
body: tariffBody,
|
||
|
response: replaceTariffReponse,
|
||
|
};
|