Page Contents
Home > @loopback/rest > DefaultSequence > (constructor)
DefaultSequence.(constructor)
Constructor: Injects findRoute, invokeMethod & logError methods as promises.
Signature:
constructor(findRoute: FindRoute, parseParams: ParseParams, invoke: InvokeMethod, send: Send, reject: Reject);
Parameters
| Parameter | Type | Description |
|---|---|---|
| findRoute | [FindRoute](/doc/en/lb4/apidocs.rest.findroute.html) | Finds the appropriate controller method, spec and args for invocation (injected via SequenceActions.FIND\_ROUTE). |
| parseParams | [ParseParams](/doc/en/lb4/apidocs.rest.parseparams.html) | The parameter parsing function (injected via SequenceActions.PARSE\_PARAMS). |
| invoke | [InvokeMethod](/doc/en/lb4/apidocs.rest.invokemethod.html) | Invokes the method specified by the route (injected via SequenceActions.INVOKE\_METHOD). |
| send | [Send](/doc/en/lb4/apidocs.rest.send.html) | The action to merge the invoke result with the response (injected via SequenceActions.SEND) |
| reject | [Reject](/doc/en/lb4/apidocs.rest.reject.html) | The action to take if the invoke returns a rejected promise result (injected via SequenceActions.REJECT). |