@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
77 lines (39 loc) • 1.31 kB
Markdown
---
lang: en
title: 'API docs: rest.restapplication._constructor__1'
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__1.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RestApplication](./rest.restapplication.md) > [(constructor)](./rest.restapplication._constructor__1.md)
## RestApplication.(constructor)
Create a REST application with the given configuration and parent context
**Signature:**
```typescript
constructor(config?: ApplicationConfig, parent?: Context);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
config
</td><td markdown="1">
[ApplicationConfig](./core.applicationconfig.md)
</td><td markdown="1">
_(Optional)_ Application configuration
</td></tr>
<tr><td markdown="1">
parent
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
_(Optional)_ Parent context
</td></tr>
</tbody></table>