dinoloop-es8
Version:
A lightweight REST API Library for building scalable Node.js server-side applications powered by Typescript
19 lines (18 loc) • 995 B
TypeScript
import { ApiController, ControllerAction } from '../controller';
import { Request, Response, NextFunction, IKeyValuePair } from '../types';
import { IDinoController } from '../interfaces';
export declare class DinoController implements IDinoController {
private controller;
private controllerAction;
constructor(controller: ApiController, controllerAction: ControllerAction);
getQueryParams(): any;
mapSegments(params: string[], requestUrl: string): IKeyValuePair[];
raiseActionParamsHandlers(values: IKeyValuePair[]): void;
handleHttpBody(values: IKeyValuePair[]): void;
attachResultToDino(sendsResponse: boolean, result: any): void;
patch(req: Request, res: Response, next: NextFunction): void;
invokeSetUp(actionName: string): IKeyValuePair[];
invoke(actionName: string): void;
invokeAsync(actionName: string): Promise<void>;
static create(controller: ApiController, controllerAction: ControllerAction): DinoController;
}