swagger-express-ts
Version:
Generate and serve swagger.json
1 lines • 821 B
Source Map (JSON)
{"version":3,"sources":["../../lib/swagger-express-ts-lib/src/api-path.decorator.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,CAAA;KAAE,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AACD,wBAAgB,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAI1D","file":"api-path.decorator.d.ts","sourcesContent":["import { SwaggerService } from './swagger.service';\nexport interface IApiPathArgs {\n path: string;\n name: string;\n description?: string;\n security?: { [key: string]: any[] };\n deprecated?: boolean;\n}\nexport function ApiPath(args: IApiPathArgs): ClassDecorator {\n return (target: any) => {\n SwaggerService.getInstance().addPath(args, target);\n };\n}\n"]}