@nimbella/postman-api
Version:
Postman Collection to Nimbella Project: Take your APIs seamlessly into Serverless world with this API
24 lines (23 loc) • 710 B
TypeScript
import { Collection } from 'postman-collection';
import BaseGenerator from './stub/base-gen';
export default class ProjectGenerator {
currentNamespace: string | undefined;
createDir(base: string, dir: string, verbose?: boolean): Promise<void>;
createProjectYML(base: string): void;
updateProjectYML(base: string, content: string): void;
generateSkeleton(opts: ProjectSkeletonOptions): string;
}
export interface RouteOptions {
path: string;
relPath: string;
name: string;
method: string;
responseType: string;
}
export interface ProjectSkeletonOptions {
base: string;
dir: string;
collection: Collection;
update: boolean;
generator: BaseGenerator;
}