{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus/issues/462","labels_url":"https://api.github.com/repos/solidusio/solidus/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/462/comments","events_url":"https://api.github.com/repos/solidusio/solidus/issues/462/events","html_url":"https://github.com/solidusio/solidus/issues/462","id":113369260,"number":462,"title":"Make more api controllers use the api resource controller","user":{"login":"athal7","id":467872,"avatar_url":"https://avatars.githubusercontent.com/u/467872?v=3","gravatar_id":"","url":"https://api.github.com/users/athal7","html_url":"https://github.com/athal7","followers_url":"https://api.github.com/users/athal7/followers","following_url":"https://api.github.com/users/athal7/following{/other_user}","gists_url":"https://api.github.com/users/athal7/gists{/gist_id}","starred_url":"https://api.github.com/users/athal7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athal7/subscriptions","organizations_url":"https://api.github.com/users/athal7/orgs","repos_url":"https://api.github.com/users/athal7/repos","events_url":"https://api.github.com/users/athal7/events{/privacy}","received_events_url":"https://api.github.com/users/athal7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/solidusio/solidus/milestones/4","html_url":"https://github.com/solidusio/solidus/milestones/1.2.0","labels_url":"https://api.github.com/repos/solidusio/solidus/milestones/4/labels","id":1354142,"number":4,"title":"1.2.0","description":null,"creator":{"login":"athal7","id":467872,"avatar_url":"https://avatars.githubusercontent.com/u/467872?v=3","gravatar_id":"","url":"https://api.github.com/users/athal7","html_url":"https://github.com/athal7","followers_url":"https://api.github.com/users/athal7/followers","following_url":"https://api.github.com/users/athal7/following{/other_user}","gists_url":"https://api.github.com/users/athal7/gists{/gist_id}","starred_url":"https://api.github.com/users/athal7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athal7/subscriptions","organizations_url":"https://api.github.com/users/athal7/orgs","repos_url":"https://api.github.com/users/athal7/repos","events_url":"https://api.github.com/users/athal7/events{/privacy}","received_events_url":"https://api.github.com/users/athal7/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2015-10-13T22:00:57Z","updated_at":"2015-10-26T14:32:31Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-10-26T14:32:28Z","updated_at":"2015-10-27T16:48:53Z","closed_at":null,"body":"There is a lot of duplicated code across api controllers, leveraging https://github.com/solidusio/solidus/blob/master/api/app/controllers/spree/api/resource_controller.rb should help clean a good chunk of that up."},"comment":{"url":"https://api.github.com/repos/solidusio/solidus/issues/comments/151565325","html_url":"https://github.com/solidusio/solidus/issues/462#issuecomment-151565325","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/462","id":151565325,"user":{"login":"Senjai","id":1831235,"avatar_url":"https://avatars.githubusercontent.com/u/1831235?v=3","gravatar_id":"","url":"https://api.github.com/users/Senjai","html_url":"https://github.com/Senjai","followers_url":"https://api.github.com/users/Senjai/followers","following_url":"https://api.github.com/users/Senjai/following{/other_user}","gists_url":"https://api.github.com/users/Senjai/gists{/gist_id}","starred_url":"https://api.github.com/users/Senjai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Senjai/subscriptions","organizations_url":"https://api.github.com/users/Senjai/orgs","repos_url":"https://api.github.com/users/Senjai/repos","events_url":"https://api.github.com/users/Senjai/events{/privacy}","received_events_url":"https://api.github.com/users/Senjai/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T16:48:53Z","updated_at":"2015-10-27T16:48:53Z","body":"There are certainly difficulties when using the resource controller for non restful situations, or situations where you require a lot of custom behavior, however, with simple controllers, nothing has been more helpful than the resource controller. It cuts down the time significantly for controllers that match what it's trying to accomplish and works well with resource controller specific helpers like `link_to_destroy`"}}