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

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

