@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
179 lines (83 loc) • 2.17 kB
Markdown
---
lang: en
title: 'API docs: rest.route'
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.route.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [Route](./rest.route.md)
## Route class
**Signature:**
```typescript
export declare class Route extends BaseRoute
```
**Extends:** [BaseRoute](./rest.baseroute.md)
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(verb, path, spec, \_handler)](./rest.route._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `Route` class
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[\_handler](./rest.route._handler.md)
</td><td markdown="1">
`protected`
`readonly`
</td><td markdown="1">
Function
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[spec](./rest.route.spec.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
OperationObject
</td><td markdown="1">
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[describe()](./rest.route.describe.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[invokeHandler(requestContext, args)](./rest.route.invokehandler.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[updateBindings(requestContext)](./rest.route.updatebindings.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
</tbody></table>