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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestRouter](./rest.restrouter.md) &gt; [list](./rest.restrouter.list.md)

## RestRouter.list() method

List all routes

<b>Signature:</b>

```typescript
list(): RouteEntry[];
```
<b>Returns:</b>

[RouteEntry](./rest.routeentry.md)<!-- -->\[\]


