@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
34 lines (22 loc) • 938 B
Markdown
---
lang: en
title: 'API docs: rest.restapplication.server'
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.server.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RestApplication](./rest.restapplication.md) > [server](./rest.restapplication.server.md)
## RestApplication.server() method
<b>Signature:</b>
```typescript
server(server: Constructor<Server>, name?: string): Binding;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| server | [Constructor](./context.constructor.md)<!-- --><[Server](./core.server.md)<!-- -->> | |
| name | string | |
<b>Returns:</b>
[Binding](./context.binding.md)