Functions
createSwaggerSpec
- createSwaggerSpec(__namedParameters?: SwaggerOptions): object
Parameters
__namedParameters: SwaggerOptions = defaultOptions
Returns object
withSwagger
- withSwagger(__namedParameters?: SwaggerOptions): () => (_req: NextApiRequest, res: NextApiResponse<any>) => void
Parameters
__namedParameters: SwaggerOptions = defaultOptions
Returns () => (_req: NextApiRequest, res: NextApiResponse<any>) => void
- (): (_req: NextApiRequest, res: NextApiResponse<any>) => void
Returns (_req: NextApiRequest, res: NextApiResponse<any>) => void
- (_req: NextApiRequest, res: NextApiResponse<any>): void
Parameters
_req: NextApiRequest
res: NextApiResponse<any>
Returns void
Create swagger JSON