{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/77","labels_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/77/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/77/events","html_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/77","id":117614288,"number":77,"title":"make REST DB util generic","user":{"login":"emirotin","id":525832,"avatar_url":"https://avatars.githubusercontent.com/u/525832?v=3","gravatar_id":"","url":"https://api.github.com/users/emirotin","html_url":"https://github.com/emirotin","followers_url":"https://api.github.com/users/emirotin/followers","following_url":"https://api.github.com/users/emirotin/following{/other_user}","gists_url":"https://api.github.com/users/emirotin/gists{/gist_id}","starred_url":"https://api.github.com/users/emirotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirotin/subscriptions","organizations_url":"https://api.github.com/users/emirotin/orgs","repos_url":"https://api.github.com/users/emirotin/repos","events_url":"https://api.github.com/users/emirotin/events{/privacy}","received_events_url":"https://api.github.com/users/emirotin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/labels/cla-signed","name":"cla-signed","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T15:44:06Z","updated_at":"2015-11-18T21:36:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/pulls/77","html_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/77","diff_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/77.diff","patch_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/77.patch"},"body":"When working on 3rd party integration (porting resin.io integration to the new codebase) I've noticed I'd like to use the provided Doc DB REST util.\r\n\r\nWhile it's completely generic by its nature it's locked to the devices collection (the only one used in the official repo, but I've introduced 2 more for my integration, and others may want to I think) in 2 ways:\r\n- the way it names its methods and arguments\r\n- the constructor\r\n\r\nSo I've renamed the methods, extracted generic schema routines, added another constructor (backward-compatible) and updated all the usages of the class (in Device Repository).\r\n\r\nGetting this PR merged will significantly reduce deviation of my branch from master (while keeping it DRY), and simplify supporting it (I've spent a couple of hours recently rebasing against the upstream changes from the last couple of weeks).\r\n\r\n\r\nThanks in advance for your time."},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/comments/157872480","html_url":"https://github.com/Azure/azure-iot-remote-monitoring/pull/77#issuecomment-157872480","issue_url":"https://api.github.com/repos/Azure/azure-iot-remote-monitoring/issues/77","id":157872480,"user":{"login":"aguilaaj","id":670242,"avatar_url":"https://avatars.githubusercontent.com/u/670242?v=3","gravatar_id":"","url":"https://api.github.com/users/aguilaaj","html_url":"https://github.com/aguilaaj","followers_url":"https://api.github.com/users/aguilaaj/followers","following_url":"https://api.github.com/users/aguilaaj/following{/other_user}","gists_url":"https://api.github.com/users/aguilaaj/gists{/gist_id}","starred_url":"https://api.github.com/users/aguilaaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguilaaj/subscriptions","organizations_url":"https://api.github.com/users/aguilaaj/orgs","repos_url":"https://api.github.com/users/aguilaaj/repos","events_url":"https://api.github.com/users/aguilaaj/events{/privacy}","received_events_url":"https://api.github.com/users/aguilaaj/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T21:36:36Z","updated_at":"2015-11-18T21:36:36Z","body":"Hi Eugene, we're taking a look. Can you do me a favor and make the PR against december-integration as oppose to master? We're using that as our staging before our next release. Thanks! "}}