Properties for the SwaggerCustomizer decorator.

SwaggerCustomizer.IProps is a type for the closure parameter of the SwaggerCustomizer decorator. It's a callback function which can customize the swagger data.

interface IProps {
    method: string;
    path: string;
    route: IOperation;
    swagger: IDocument;
    at(func: Function): undefined | ISwaggerEndpoint;
    get(accessor: IAccessor): undefined | IOperation;
}

Properties

Methods

Properties

method: string

Method of the route.

path: string

Path of the route.

route: IOperation

Route data.

swagger: IDocument

Swagger data.

Methods