@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
214 lines (98 loc) • 2.57 kB
Markdown
---
lang: en
title: 'API docs: rest.baseroute'
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.baseroute.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [BaseRoute](./rest.baseroute.md)
## BaseRoute class
Base implementation of RouteEntry
**Signature:**
```typescript
export declare abstract class BaseRoute implements RouteEntry
```
**Implements:** [RouteEntry](./rest.routeentry.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)](./rest.baseroute._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Construct a new route
</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">
[path](./rest.baseroute.path.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
string
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[spec](./rest.baseroute.spec.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
OperationObject
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[verb](./rest.baseroute.verb.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
string
</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.baseroute.describe.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[invokeHandler(requestContext, args)](./rest.baseroute.invokehandler.md)
</td><td markdown="1">
`abstract`
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[toString()](./rest.baseroute.tostring.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[updateBindings(requestContext)](./rest.baseroute.updatebindings.md)
</td><td markdown="1">
`abstract`
</td><td markdown="1">
</td></tr>
</tbody></table>