---
lang: en
title: 'API docs: rest.restapplication._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.restapplication._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestApplication](./rest.restapplication.md) &gt; [(constructor)](./rest.restapplication._constructor_.md)

## RestApplication.(constructor)

Create a REST application with the given parent context

**Signature:**

```typescript
constructor(parent: Context);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

parent


</td><td markdown="1">

[Context](./context.context.md)


</td><td markdown="1">

Parent context


</td></tr>
</tbody></table>


