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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2