---
lang: en
title: 'API docs: rest.restserver.rooturl'
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.restserver.rooturl.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestServer](./rest.restserver.md) &gt; [rootUrl](./rest.restserver.rooturl.md)

## RestServer.rootUrl property

The root url for the server without the basePath. For example, the value will be 'http://localhost:3000' regardless of the `basePath`<!-- -->.

<b>Signature:</b>

```typescript
get rootUrl(): string | undefined;
```

