{"action":"created","issue":{"url":"https://api.github.com/repos/lexich/redux-api/issues/3","labels_url":"https://api.github.com/repos/lexich/redux-api/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lexich/redux-api/issues/3/comments","events_url":"https://api.github.com/repos/lexich/redux-api/issues/3/events","html_url":"https://github.com/lexich/redux-api/issues/3","id":103261017,"number":3,"title":"Many actions for one reducer?","user":{"login":"mattapperson","id":192433,"avatar_url":"https://avatars.githubusercontent.com/u/192433?v=3","gravatar_id":"","url":"https://api.github.com/users/mattapperson","html_url":"https://github.com/mattapperson","followers_url":"https://api.github.com/users/mattapperson/followers","following_url":"https://api.github.com/users/mattapperson/following{/other_user}","gists_url":"https://api.github.com/users/mattapperson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattapperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattapperson/subscriptions","organizations_url":"https://api.github.com/users/mattapperson/orgs","repos_url":"https://api.github.com/users/mattapperson/repos","events_url":"https://api.github.com/users/mattapperson/events{/privacy}","received_events_url":"https://api.github.com/users/mattapperson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-26T12:56:01Z","updated_at":"2015-08-27T19:50:52Z","closed_at":null,"body":"One issue I still have with this project is that in many cases I have many actions for data set (add user, edit user, remove user for example) how does one get all that into a single reducer?"},"comment":{"url":"https://api.github.com/repos/lexich/redux-api/issues/comments/135534742","html_url":"https://github.com/lexich/redux-api/issues/3#issuecomment-135534742","issue_url":"https://api.github.com/repos/lexich/redux-api/issues/3","id":135534742,"user":{"login":"mattapperson","id":192433,"avatar_url":"https://avatars.githubusercontent.com/u/192433?v=3","gravatar_id":"","url":"https://api.github.com/users/mattapperson","html_url":"https://github.com/mattapperson","followers_url":"https://api.github.com/users/mattapperson/followers","following_url":"https://api.github.com/users/mattapperson/following{/other_user}","gists_url":"https://api.github.com/users/mattapperson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattapperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattapperson/subscriptions","organizations_url":"https://api.github.com/users/mattapperson/orgs","repos_url":"https://api.github.com/users/mattapperson/repos","events_url":"https://api.github.com/users/mattapperson/events{/privacy}","received_events_url":"https://api.github.com/users/mattapperson/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T19:50:52Z","updated_at":"2015-08-27T19:50:52Z","body":"For example, without my PR, the following results in 3 reducers, when all we really want is one:\r\n\r\n```js\r\nconst rest = reduxApi({\r\n  getUser: {\r\n    url: \"/api/v1/user/:id\",\r\n  }\r\n  createUser: {\r\n    url: \"/api/v1/user/:id\",\r\n    options: {\r\n      method: \"post\"\r\n    },\r\n   updateUser: {\r\n    url: \"/api/v1/user/:id\",\r\n    options: {\r\n      method: \"post\"\r\n    }\r\n}\r\n```"}}