1 | import { Context, InvocationSource } from '@loopback/core';
|
2 | import { OperationObject } from '@loopback/openapi-v3';
|
3 | import { OperationArgs, OperationRetval } from '../types';
|
4 | import { RouteEntry } from './route-entry';
|
5 |
|
6 |
|
7 |
|
8 | export declare abstract class BaseRoute implements RouteEntry {
|
9 | readonly path: string;
|
10 | readonly spec: OperationObject;
|
11 | readonly verb: string;
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | constructor(verb: string, path: string, spec: OperationObject);
|
19 | abstract updateBindings(requestContext: Context): void;
|
20 | abstract invokeHandler(requestContext: Context, args: OperationArgs): Promise<OperationRetval>;
|
21 | describe(): string;
|
22 | toString(): string;
|
23 | }
|
24 | export declare class RouteSource implements InvocationSource<RouteEntry> {
|
25 | readonly value: RouteEntry;
|
26 | type: string;
|
27 | constructor(value: RouteEntry);
|
28 | toString(): string;
|
29 | }
|