swagger-typescript-generator
Version:
Generate typescript code from swagger.json. Before start this project I try use [swagger-typescript-codegen](https://github.com/mtennoe/swagger-typescript-codegen) based on [mustache templates](https://github.com/mtennoe/swagger-js-codegen/tree/master/lib
32 lines (31 loc) • 1.06 kB
TypeScript
import { SwaggerClass } from "./swagger-class";
import { IUrlInfo } from "./url-info";
import { SwaggerBase } from "./swagger-base";
import { SwaggerMethodParameter } from "./swagger-method-parameter";
import { SwaggerPath } from "./swagger-path";
import { SwaggerBasePrivateProps } from "./swagger-base-private-props";
import { ModelType } from "./model-type";
export interface ISwaggerMethod {
httpMethod: string;
name: string;
tags: string;
url: string;
parameters: SwaggerMethodParameter[];
}
interface PrivateProps extends SwaggerBasePrivateProps<SwaggerClass> {
}
export declare class SwaggerMethod extends SwaggerBase<SwaggerClass, PrivateProps> {
httpMethod: string;
name: string;
tags: string;
url: string;
parameters: SwaggerMethodParameter[];
responseIsVoid?: boolean;
isFileUpload?: boolean;
description?: string;
responseModelType: ModelType;
constructor(parent: SwaggerClass, httpMethod: string, path: SwaggerPath, source: any);
init(): void;
getUrlInfo(): IUrlInfo;
}
export {};