UNPKG

fastman

Version:

快速api测试及文档生成

108 lines (107 loc) 2.6 kB
/** * postman collection format * https://schema.getpostman.com/json/collection/v2.1.0/docs/index.html */ export declare namespace Postman { interface Collection { info: Info; item: Item[]; auth?: any; event?: any; variable?: Variable; } interface Info { name: string; schema: string; } interface Item { id?: string; name?: string; description?: string; variable?: Variable; event?: any; request: Request[] | Request; response?: Response[]; } interface Request { url?: Url; auth?: any; proxy?: any; certificate?: any; method?: string; description?: string; header?: Header[]; body?: RequestBody; } interface Response { id?: string; originalRequest?: Request; responseTime?: string | number; header?: Header[] | string; cookie?: Cookie[]; body?: string; status?: string; code?: number; } interface Cookie { domain: string; path: string; expires?: string | number; maxAge?: string; hostOnly?: boolean; httpOnly?: boolean; name?: string; secure?: boolean; session?: boolean; value?: string; extensions?: any[]; } interface RequestBody { mode?: string; raw?: string; urlencoded?: UrlEncodedParameter[]; formdata?: object; file?: { src?: string; content?: string; }; } interface UrlEncodedParameter { key: string; value?: string; disabled?: boolean; description: string; } interface Header { key: string; value: string; disabled?: boolean; description?: string; } interface Url { raw?: string; protocol?: string; host: string[]; path?: string[]; port?: string; query?: QueryParam[]; hash?: string; variable?: Variable[]; } interface QueryParam { key?: string; value?: string; disabled?: boolean; description?: string; } interface Variable { id?: string; key?: string; value?: string; type?: any; name?: string; description?: string; system?: boolean; disabled?: boolean; } }