{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/tasks/issues/196","labels_url":"https://api.github.com/repos/owncloud/tasks/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/tasks/issues/196/comments","events_url":"https://api.github.com/repos/owncloud/tasks/issues/196/events","html_url":"https://github.com/owncloud/tasks/issues/196","id":89299029,"number":196,"title":"Split up the backend into services and controllers","user":{"login":"Henni","id":1267827,"avatar_url":"https://avatars.githubusercontent.com/u/1267827?v=3","gravatar_id":"","url":"https://api.github.com/users/Henni","html_url":"https://github.com/Henni","followers_url":"https://api.github.com/users/Henni/followers","following_url":"https://api.github.com/users/Henni/following{/other_user}","gists_url":"https://api.github.com/users/Henni/gists{/gist_id}","starred_url":"https://api.github.com/users/Henni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henni/subscriptions","organizations_url":"https://api.github.com/users/Henni/orgs","repos_url":"https://api.github.com/users/Henni/repos","events_url":"https://api.github.com/users/Henni/events{/privacy}","received_events_url":"https://api.github.com/users/Henni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/tasks/labels/Clean%20Up","name":"Clean Up","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"Henni","id":1267827,"avatar_url":"https://avatars.githubusercontent.com/u/1267827?v=3","gravatar_id":"","url":"https://api.github.com/users/Henni","html_url":"https://github.com/Henni","followers_url":"https://api.github.com/users/Henni/followers","following_url":"https://api.github.com/users/Henni/following{/other_user}","gists_url":"https://api.github.com/users/Henni/gists{/gist_id}","starred_url":"https://api.github.com/users/Henni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henni/subscriptions","organizations_url":"https://api.github.com/users/Henni/orgs","repos_url":"https://api.github.com/users/Henni/repos","events_url":"https://api.github.com/users/Henni/events{/privacy}","received_events_url":"https://api.github.com/users/Henni/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-18T13:48:26Z","updated_at":"2015-06-24T21:28:16Z","closed_at":null,"body":"The [owncloud documentation](https://doc.owncloud.org/server/8.0/developer_manual/app/container.html) describes a MVC structure build out of services and controllers. Therefore the following files should be split up into two:\r\n- [x] [taskscontroller.php](https://github.com/owncloud/tasks/blob/master/controller/taskscontroller.php)\r\n- [x] [settingscontroller.php](https://github.com/owncloud/tasks/blob/master/controller/settingscontroller.php)\r\n- [x] [listscontroller.php](https://github.com/owncloud/tasks/blob/master/controller/listscontroller.php)\r\n- [x] [collectionscontroller.php](https://github.com/owncloud/tasks/blob/master/controller/collectionscontroller.php)\r\n\r\nI don't think that [searchcontroller.php] (https://github.com/owncloud/tasks/blob/master/controller/searchcontroller.php) and [pagecontroller.php](https://github.com/owncloud/tasks/blob/master/controller/pagecontroller.php) need to be changed.\r\n\r\nWhile I'm changing this I would additionally unify the JSON responses to the following form:\r\n**Successful request:**\r\n```javascript\r\n{\r\n  \"status\": \"success\",\r\n  \"data\": {\r\n    /* Application-specific data would go here. */\r\n  },\r\n  \"message\": null /* Or optional success message */\r\n}\r\n```\r\n**Failed request:**\r\n```javascript\r\n{\r\n  \"status\": \"error\",\r\n  \"data\": null, /* or optional error payload */\r\n  \"message\": \"Error xyz has occurred\"\r\n}\r\n```\r\nsource: http://stackoverflow.com/a/12979961"},"comment":{"url":"https://api.github.com/repos/owncloud/tasks/issues/comments/115017454","html_url":"https://github.com/owncloud/tasks/issues/196#issuecomment-115017454","issue_url":"https://api.github.com/repos/owncloud/tasks/issues/196","id":115017454,"user":{"login":"raimund-schluessler","id":2496460,"avatar_url":"https://avatars.githubusercontent.com/u/2496460?v=3","gravatar_id":"","url":"https://api.github.com/users/raimund-schluessler","html_url":"https://github.com/raimund-schluessler","followers_url":"https://api.github.com/users/raimund-schluessler/followers","following_url":"https://api.github.com/users/raimund-schluessler/following{/other_user}","gists_url":"https://api.github.com/users/raimund-schluessler/gists{/gist_id}","starred_url":"https://api.github.com/users/raimund-schluessler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raimund-schluessler/subscriptions","organizations_url":"https://api.github.com/users/raimund-schluessler/orgs","repos_url":"https://api.github.com/users/raimund-schluessler/repos","events_url":"https://api.github.com/users/raimund-schluessler/events{/privacy}","received_events_url":"https://api.github.com/users/raimund-schluessler/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T21:28:16Z","updated_at":"2015-06-24T21:28:16Z","body":"@Henni Done with #203?"}}