UNPKG

1.27 kBTypeScriptView Raw
1/** @module services */
2import { ConfigParams, ICommand } from "pip-services3-commons-node";
3export declare class CommandableSwaggerDocument {
4 private content;
5 commands: ICommand[];
6 version: string;
7 baseRoute: string;
8 infoTitle: string;
9 infoDescription: string;
10 infoVersion: string;
11 infoTermsOfService: string;
12 infoContactName: string;
13 infoContactUrl: string;
14 infoContactEmail: string;
15 infoLicenseName: string;
16 infoLicenseUrl: string;
17 protected readonly objectType: Map<string, any>;
18 constructor(baseRoute: string, config: ConfigParams, commands: ICommand[]);
19 toString(): string;
20 private createPathsData;
21 private createRequestBodyData;
22 private createSchemaData;
23 private createPropertyData;
24 private createPropertyTypeData;
25 private createResponsesData;
26 protected writeData(indent: number, data: Map<string, any>): void;
27 protected writeName(indent: number, name: string): void;
28 protected writeArrayItem(indent: number, name: string, isObjectItem?: boolean): void;
29 protected writeAsObject(indent: number, name: string, value: any): void;
30 protected writeAsString(indent: number, name: string, value: string): void;
31 protected getSpaces(length: number): string;
32}