Skip to content

getActionName ​

Overview ​

Maps a view name to its corresponding DRF action name, defaulting to the view name itself.

Signature ​

getActionName(action)

Parameters ​

NameTypeRequiredDescription
actionstringyesThe view name (e.g. "read", "list", "create").

Returns ​

string

The corresponding DRF action name.

Source ​

client/lib/utils/actionMap.js:16