getActionName
Overview
Maps a view name to its corresponding DRF action name, defaulting to the view name itself.
Signature
getActionName(action)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | string | yes | The view name (e.g. "read", "list", "create"). |
Returns
string
The corresponding DRF action name.
Source
client/lib/utils/actionMap.js:16