Resources
Resources are ready-to-use store modules, simple javascript objects with the following structure:
@NOTE: reducers is currently also exposing the root reducer, but using rootReducer is the recommended way forward. Will break once 1.0 is reached.
Resources are the ready-to-use abstraction for your REST related needs.
They can be created with a simple factory function:
Options
Option name | Type | Description |
name | String | Actual name of the resource (required) |
url | Function/String | Actual url of the resource (required) |
pluralName | String | Plural name of the resource (optional) |
actions | Object | Action extra options, merged with defaults (optional) |
You can also pass any action related option to set a global default.
Last updated