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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [Route](./rest.route.md) &gt; [invokeHandler](./rest.route.invokehandler.md)

## Route.invokeHandler() method

<b>Signature:</b>

```typescript
invokeHandler(requestContext: Context, args: OperationArgs): Promise<OperationRetval>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  requestContext | [Context](./context.context.md) |  |
|  args | [OperationArgs](./rest.operationargs.md) |  |

<b>Returns:</b>

Promise&lt;[OperationRetval](./rest.operationretval.md)<!-- -->&gt;


