@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
75 lines (38 loc) • 1.25 kB
Markdown
---
lang: en
title: 'API docs: rest.baseroute.invokehandler'
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.invokehandler.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [BaseRoute](./rest.baseroute.md) > [invokeHandler](./rest.baseroute.invokehandler.md)
## BaseRoute.invokeHandler() method
**Signature:**
```typescript
abstract invokeHandler(requestContext: Context, args: OperationArgs): Promise<OperationRetval>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
requestContext
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
args
</td><td markdown="1">
[OperationArgs](./rest.operationargs.md)
</td><td markdown="1">
</td></tr>
</tbody></table>
**Returns:**
Promise<[OperationRetval](./rest.operationretval.md)<!-- -->>