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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [InvokeMethod](./rest.invokemethod.md)

## InvokeMethod type

Invokes a method defined in the Application Controller

**Signature:**

```typescript
export type InvokeMethod = (route: RouteEntry, args: OperationArgs) => Promise<OperationRetval>;
```
**References:** [RouteEntry](./rest.routeentry.md)<!-- -->, [OperationArgs](./rest.operationargs.md)<!-- -->, [OperationRetval](./rest.operationretval.md)


