UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

27 lines (26 loc) 598 B
import { Method } from './openapi'; export interface PathChunk { path: string; param: boolean; } export interface TemplateContext { chunks: PathChunk[]; type: string; name: string; item?: { name: string; value: string; }; array: boolean; } export declare class CodeSamples { readonly method: Method; private templates; constructor(method: Method); readTemplates(method: Method): { [lang: string]: (context: TemplateContext) => string; }; getSamples(context: TemplateContext): { [key: string]: string; }; }