Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 638 Bytes

Types

Action types are strings that indicates the type of action being performed.

Exported action types

Redux REST Resource does expose action types that will be used in dispatched actions.

We're using scoped types with a namespace to prevent conflicts when using multiple resources.

types ==
  {
    CREATE_USER: '@@resource/USER/CREATE',
    FETCH_USERS: '@@resource/USER/FETCH',
    GET_USER: '@@resource/USER/GET',
    UPDATE_USER: '@@resource/USER/UPDATE',
    UPDATE_USERS: '@@resource/USER/UPDATE_MANY',
    DELETE_USER: '@@resource/USER/DELETE',
    DELETE_USERS: '@@resource/USER/DELETE_MANY'
  };