Interface IControllerMethodInfo

Information about a loaded controller method.

interface IControllerMethodInfo {
    controller: IHttpController<IHttpServer>;
    deprecatedOptions: IControllerRouteDeprecatedOptions;
    function: Func;
    handler: Func;
    method: HttpMethod;
    middlewares: HttpMiddleware[];
    name: string;
    options: Optional<IControllerRouteOptions | ControllerRouteWithBodyOptions>;
    path: HttpRequestPath;
    rawPath: string;
    serializer: Optional<ResponseSerializer<any>>;
    swaggerOperations: {
        callbacks?: {
            [callback: string]: ReferenceObject | CallbackObject;
        };
        deprecated?: boolean;
        description?: string;
        externalDocs?: ExternalDocumentationObject;
        operationId?: string;
        parameters?: (ReferenceObject | ParameterObject)[];
        requestBody?: ReferenceObject | RequestBodyObject;
        responses: ResponsesObject;
        security?: SecurityRequirementObject[];
        servers?: ServerObject[];
        summary?: string;
        tags?: string[];
    }[];
    tests: ITestSettings[];
}

Properties

The underlying controller.

Deprecated options.

function: Func

The underlying base function instance.

handler: Func

The underlying handler function for the server, which is used at the end.

method: HttpMethod

The underlying http method.

middlewares: HttpMiddleware[]

The middlewares.

name: string

The name of the method.

The underlying options.

The route path.

rawPath: string

The raw request path as string.

serializer: Optional<ResponseSerializer<any>>

The serializer, if defined.

swaggerOperations: {
    callbacks?: {
        [callback: string]: ReferenceObject | CallbackObject;
    };
    deprecated?: boolean;
    description?: string;
    externalDocs?: ExternalDocumentationObject;
    operationId?: string;
    parameters?: (ReferenceObject | ParameterObject)[];
    requestBody?: ReferenceObject | RequestBodyObject;
    responses: ResponsesObject;
    security?: SecurityRequirementObject[];
    servers?: ServerObject[];
    summary?: string;
    tags?: string[];
}[]

Underlying swagger operations.

Type declaration

tests: ITestSettings[]

Tests, represented by their settings.

Generated using TypeDoc