---
lang: en
title: 'API docs: rest.defaultsequence._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
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 | [FindRoute](./rest.findroute.md) | Finds the appropriate controller method, spec and args for invocation (injected via SequenceActions.FIND\_ROUTE). |
|  parseParams | [ParseParams](./rest.parseparams.md) | The parameter parsing function (injected via SequenceActions.PARSE\_PARAMS). |
|  invoke | [InvokeMethod](./rest.invokemethod.md) | Invokes the method specified by the route (injected via SequenceActions.INVOKE\_METHOD). |
|  send | [Send](./rest.send.md) | The action to merge the invoke result with the response (injected via SequenceActions.SEND) |
|  reject | [Reject](./rest.reject.md) | The action to take if the invoke returns a rejected promise result (injected via SequenceActions.REJECT). |


