swagger-tests
Version:
A typescript framework for testing an api against a swagger 3.0 json file.
23 lines (22 loc) • 774 B
TypeScript
import { SwaggerComponents } from "./swagger/components";
import { SwaggerSecurity } from "./swagger/security";
import { SwaggerInfo } from "./swagger/info";
import { SwaggerServer } from "./swagger/server";
export declare class SwaggerApi {
openapi: string;
security: SwaggerSecurity[];
info: SwaggerInfo;
servers: SwaggerServer[];
paths: any;
components: SwaggerComponents;
private testedOperations;
constructor();
create(api: SwaggerApi): SwaggerApi;
json(): any;
routes(): string[];
routeOperations(route: string): string[];
routeOperationResponses(route: string, operation: string): string[];
operationResponses(): string[];
setTestedOperation(operation: string): void;
getTestedOperations(): string[];
}