tariffs/src/swagger/account/index.ts

20 lines
640 B
TypeScript
Raw Normal View History

2022-12-22 10:45:44 +00:00
import { getAccountParams } from "./inputs";
import { getAccountResponse, createAccountResponse } from "./responses";
import type { SwaggerSchema } from "@/types/swagger.type";
export const getAccountSchema: SwaggerSchema = {
summary: "Получение информации об аккаунте",
description: "Получение аккаунта по ID",
tags: ["account"],
params: getAccountParams,
response: getAccountResponse,
};
export const createAccountSchema: SwaggerSchema = {
summary: "Создание аккаунта",
tags: ["account"],
response: createAccountResponse,
security: [{ bearer: [] }],
};