UNPKG

@loopback/docs

Version:
34 lines (23 loc) 1.49 kB
--- lang: en title: 'API docs: rest.defaultsequence.(constructor)' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.rest.defaultsequence.(constructor).html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [DefaultSequence](./rest.defaultsequence.md) &gt; [(constructor)](./rest.defaultsequence.(constructor).md) ## DefaultSequence.(constructor) Constructor: Injects findRoute, invokeMethod &amp; logError methods as promises. <b>Signature:</b> ```typescript constructor(findRoute: FindRoute, parseParams: ParseParams, invoke: InvokeMethod, send: Send, reject: Reject); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | findRoute | <code>FindRoute</code> | Finds the appropriate controller method, spec and args for invocation (injected via SequenceActions.FIND\_ROUTE). | | parseParams | <code>ParseParams</code> | The parameter parsing function (injected via SequenceActions.PARSE\_PARAMS). | | invoke | <code>InvokeMethod</code> | Invokes the method specified by the route (injected via SequenceActions.INVOKE\_METHOD). | | send | <code>Send</code> | The action to merge the invoke result with the response (injected via SequenceActions.SEND) | | reject | <code>Reject</code> | The action to take if the invoke returns a rejected promise result (injected via SequenceActions.REJECT). |