1 | import { Context } from '@loopback/core';
|
2 | import { OperationObject, SchemasObject } from '@loopback/openapi-v3';
|
3 | import { OperationArgs, OperationRetval, PathParameterValues } from '../types';
|
4 |
|
5 |
|
6 |
|
7 | export interface RouteEntry {
|
8 | |
9 |
|
10 |
|
11 | readonly verb: string;
|
12 | |
13 |
|
14 |
|
15 | readonly path: string;
|
16 | |
17 |
|
18 |
|
19 | readonly spec: OperationObject;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | updateBindings(requestContext: Context): void;
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | invokeHandler(requestContext: Context, args: OperationArgs): Promise<OperationRetval>;
|
31 | describe(): string;
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 | export interface ResolvedRoute extends RouteEntry {
|
37 | readonly pathParams: PathParameterValues;
|
38 | |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | readonly schemas: SchemasObject;
|
45 | }
|
46 | export declare function createResolvedRoute(route: RouteEntry, pathParams: PathParameterValues): ResolvedRoute;
|