UNPKG

@nestia/sdk

Version:

Nestia SDK and Swagger generator

26 lines (25 loc) 972 B
import { IJsDocTagInfo } from "typia"; import { IReflectController } from "./IReflectController"; import { IReflectTypeImport } from "./IReflectTypeImport"; import { ITypedHttpRouteException } from "./ITypedHttpRouteException"; import { ITypedHttpRouteParameter } from "./ITypedHttpRouteParameter"; import { ITypedHttpRouteSuccess } from "./ITypedHttpRouteSuccess"; export interface ITypedHttpRoute { protocol: "http"; function: Function; controller: IReflectController; name: string; method: string; path: string; accessor: string[]; parameters: ITypedHttpRouteParameter[]; success: ITypedHttpRouteSuccess; exceptions: Record<number | "2XX" | "3XX" | "4XX" | "5XX", ITypedHttpRouteException>; security: Record<string, string[]>[]; tags: string[]; imports: IReflectTypeImport[]; description: string | null; jsDocTags: IJsDocTagInfo[]; operationId: string | undefined; extensions?: Record<string, any>; }