{"action":"opened","issue":{"url":"https://api.github.com/repos/vatesfr/xo-web/issues/710","repository_url":"https://api.github.com/repos/vatesfr/xo-web","labels_url":"https://api.github.com/repos/vatesfr/xo-web/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/issues/710/comments","events_url":"https://api.github.com/repos/vatesfr/xo-web/issues/710/events","html_url":"https://github.com/vatesfr/xo-web/issues/710","id":132372960,"number":710,"title":"Rework API parameters homogeneity","user":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/comp:%20server/api","name":"comp: server/api","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/difficulty%203:%20hard%20(weeks)","name":"difficulty 3: hard (weeks)","color":"bfe5bf"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/severity%201:%20low","name":"severity 1: low","color":"0052cc"},{"url":"https://api.github.com/repos/vatesfr/xo-web/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T09:43:54Z","updated_at":"2016-02-09T09:43:54Z","closed_at":null,"body":"Moved from vatesfr/xo-server#143.\r\n\r\nIn perspective of the job manager UI, I start to list naming problems I find. We will attempt to make an exhaustive check step by step.\r\n\r\n> This work should be done in parallel in xo-server and xo-web!\r\n\r\n- [ ] Replace all `id` params by the name of their namespace\r\n- [ ] All methods names should be camel cased\r\n- [ ] All parameters names should be camel cased\r\n- [ ] Rename all methods `*.getAll()` to `get()`, merge if necessary\r\n- [ ] `vm.migrate()`, `vm.migrate_pool()`: choose between `host_id` and `target_host_id` fashion\r\n- [ ] Shall `vm.revert` parameter should be `snapshot` and not `vm` ?\r\n- [ ] Shall we use `label` instead of `tag` for all rolling backup features to avoid any confusion ? Or something else ?"}}