{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-iots/pulls/comments/71648733","id":71648733,"diff_hunk":"@@ -0,0 +1,119 @@\n+/*\n+* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+*\n+* WSO2 Inc. licenses this file to you under the Apache License,\n+* Version 2.0 (the \"License\"); you may not use this file except\n+* in compliance with the License.\n+* You may obtain a copy of the License at\n+*\n+* http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* Unless required by applicable law or agreed to in writing,\n+* software distributed under the License is distributed on an\n+* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+* KIND, either express or implied. See the License for the\n+* specific language governing permissions and limitations\n+* under the License.\n+*/\n+\n+package org.homeautomation.watertank.api;\n+\n+import org.homeautomation.watertank.api.dto.DeviceJSON;\n+\n+import org.wso2.carbon.apimgt.annotations.api.API;\n+import org.wso2.carbon.apimgt.annotations.api.Permission;\n+import org.wso2.carbon.device.mgt.extensions.feature.mgt.annotations.DeviceType;\n+import org.wso2.carbon.device.mgt.extensions.feature.mgt.annotations.Feature;\n+\n+import javax.servlet.http.HttpServletResponse;\n+import javax.ws.rs.Path;\n+import javax.ws.rs.Consumes;\n+import javax.ws.rs.GET;\n+import javax.ws.rs.POST;\n+import javax.ws.rs.Produces;\n+import javax.ws.rs.PathParam;\n+import javax.ws.rs.QueryParam;\n+import javax.ws.rs.PUT;\n+import javax.ws.rs.DELETE;\n+import javax.ws.rs.core.Context;\n+import javax.ws.rs.core.MediaType;\n+import javax.ws.rs.core.Response;\n+\n+","path":"modules/samples/watertank/component/api/src/main/java/org/homeautomation/watertank/api/DeviceTypeService.java","position":42,"original_position":42,"commit_id":"d5a56c462040801257672deb2e4363f85f576dd0","original_commit_id":"d5a56c462040801257672deb2e4363f85f576dd0","user":{"login":"charithag","id":3184302,"avatar_url":"https://avatars.githubusercontent.com/u/3184302?v=3","gravatar_id":"","url":"https://api.github.com/users/charithag","html_url":"https://github.com/charithag","followers_url":"https://api.github.com/users/charithag/followers","following_url":"https://api.github.com/users/charithag/following{/other_user}","gists_url":"https://api.github.com/users/charithag/gists{/gist_id}","starred_url":"https://api.github.com/users/charithag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithag/subscriptions","organizations_url":"https://api.github.com/users/charithag/orgs","repos_url":"https://api.github.com/users/charithag/repos","events_url":"https://api.github.com/users/charithag/events{/privacy}","received_events_url":"https://api.github.com/users/charithag/received_events","type":"User","site_admin":false},"body":"Fixed in PR https://github.com/wso2/product-iots/pull/177","created_at":"2016-07-21T05:26:25Z","updated_at":"2016-07-21T05:26:25Z","html_url":"https://github.com/wso2/product-iots/pull/172#discussion_r71648733","pull_request_url":"https://api.github.com/repos/wso2/product-iots/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/comments/71648733"},"html":{"href":"https://github.com/wso2/product-iots/pull/172#discussion_r71648733"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-iots/pulls/172","id":75255624,"html_url":"https://github.com/wso2/product-iots/pull/172","diff_url":"https://github.com/wso2/product-iots/pull/172.diff","patch_url":"https://github.com/wso2/product-iots/pull/172.patch","issue_url":"https://api.github.com/repos/wso2/product-iots/issues/172","number":172,"state":"closed","locked":false,"title":"Add Smart Water Tank device type","user":{"login":"charithag","id":3184302,"avatar_url":"https://avatars.githubusercontent.com/u/3184302?v=3","gravatar_id":"","url":"https://api.github.com/users/charithag","html_url":"https://github.com/charithag","followers_url":"https://api.github.com/users/charithag/followers","following_url":"https://api.github.com/users/charithag/following{/other_user}","gists_url":"https://api.github.com/users/charithag/gists{/gist_id}","starred_url":"https://api.github.com/users/charithag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithag/subscriptions","organizations_url":"https://api.github.com/users/charithag/orgs","repos_url":"https://api.github.com/users/charithag/repos","events_url":"https://api.github.com/users/charithag/events{/privacy}","received_events_url":"https://api.github.com/users/charithag/received_events","type":"User","site_admin":false},"body":"- Need to update UI components and analytics","created_at":"2016-06-27T04:28:57Z","updated_at":"2016-07-21T05:26:25Z","closed_at":"2016-06-27T04:34:04Z","merged_at":"2016-06-27T04:34:04Z","merge_commit_sha":"f062ec27a7b747cb1c2f24440bd521808dff3862","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-iots/pulls/172/commits","review_comments_url":"https://api.github.com/repos/wso2/product-iots/pulls/172/comments","review_comment_url":"https://api.github.com/repos/wso2/product-iots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-iots/issues/172/comments","statuses_url":"https://api.github.com/repos/wso2/product-iots/statuses/d5a56c462040801257672deb2e4363f85f576dd0","head":{"label":"charithag:master","ref":"master","sha":"d5a56c462040801257672deb2e4363f85f576dd0","user":{"login":"charithag","id":3184302,"avatar_url":"https://avatars.githubusercontent.com/u/3184302?v=3","gravatar_id":"","url":"https://api.github.com/users/charithag","html_url":"https://github.com/charithag","followers_url":"https://api.github.com/users/charithag/followers","following_url":"https://api.github.com/users/charithag/following{/other_user}","gists_url":"https://api.github.com/users/charithag/gists{/gist_id}","starred_url":"https://api.github.com/users/charithag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithag/subscriptions","organizations_url":"https://api.github.com/users/charithag/orgs","repos_url":"https://api.github.com/users/charithag/repos","events_url":"https://api.github.com/users/charithag/events{/privacy}","received_events_url":"https://api.github.com/users/charithag/received_events","type":"User","site_admin":false},"repo":{"id":43046444,"name":"product-iot-server","full_name":"charithag/product-iot-server","owner":{"login":"charithag","id":3184302,"avatar_url":"https://avatars.githubusercontent.com/u/3184302?v=3","gravatar_id":"","url":"https://api.github.com/users/charithag","html_url":"https://github.com/charithag","followers_url":"https://api.github.com/users/charithag/followers","following_url":"https://api.github.com/users/charithag/following{/other_user}","gists_url":"https://api.github.com/users/charithag/gists{/gist_id}","starred_url":"https://api.github.com/users/charithag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charithag/subscriptions","organizations_url":"https://api.github.com/users/charithag/orgs","repos_url":"https://api.github.com/users/charithag/repos","events_url":"https://api.github.com/users/charithag/events{/privacy}","received_events_url":"https://api.github.com/users/charithag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charithag/product-iot-server","description":"","fork":true,"url":"https://api.github.com/repos/charithag/product-iot-server","forks_url":"https://api.github.com/repos/charithag/product-iot-server/forks","keys_url":"https://api.github.com/repos/charithag/product-iot-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charithag/product-iot-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charithag/product-iot-server/teams","hooks_url":"https://api.github.com/repos/charithag/product-iot-server/hooks","issue_events_url":"https://api.github.com/repos/charithag/product-iot-server/issues/events{/number}","events_url":"https://api.github.com/repos/charithag/product-iot-server/events","assignees_url":"https://api.github.com/repos/charithag/product-iot-server/assignees{/user}","branches_url":"https://api.github.com/repos/charithag/product-iot-server/branches{/branch}","tags_url":"https://api.github.com/repos/charithag/product-iot-server/tags","blobs_url":"https://api.github.com/repos/charithag/product-iot-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charithag/product-iot-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charithag/product-iot-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/charithag/product-iot-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charithag/product-iot-server/statuses/{sha}","languages_url":"https://api.github.com/repos/charithag/product-iot-server/languages","stargazers_url":"https://api.github.com/repos/charithag/product-iot-server/stargazers","contributors_url":"https://api.github.com/repos/charithag/product-iot-server/contributors","subscribers_url":"https://api.github.com/repos/charithag/product-iot-server/subscribers","subscription_url":"https://api.github.com/repos/charithag/product-iot-server/subscription","commits_url":"https://api.github.com/repos/charithag/product-iot-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/charithag/product-iot-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/charithag/product-iot-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/charithag/product-iot-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/charithag/product-iot-server/contents/{+path}","compare_url":"https://api.github.com/repos/charithag/product-iot-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charithag/product-iot-server/merges","archive_url":"https://api.github.com/repos/charithag/product-iot-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charithag/product-iot-server/downloads","issues_url":"https://api.github.com/repos/charithag/product-iot-server/issues{/number}","pulls_url":"https://api.github.com/repos/charithag/product-iot-server/pulls{/number}","milestones_url":"https://api.github.com/repos/charithag/product-iot-server/milestones{/number}","notifications_url":"https://api.github.com/repos/charithag/product-iot-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charithag/product-iot-server/labels{/name}","releases_url":"https://api.github.com/repos/charithag/product-iot-server/releases{/id}","deployments_url":"https://api.github.com/repos/charithag/product-iot-server/deployments","created_at":"2015-09-24T05:19:19Z","updated_at":"2016-03-10T13:56:03Z","pushed_at":"2016-07-21T05:19:38Z","git_url":"git://github.com/charithag/product-iot-server.git","ssh_url":"git@github.com:charithag/product-iot-server.git","clone_url":"https://github.com/charithag/product-iot-server.git","svn_url":"https://github.com/charithag/product-iot-server","homepage":null,"size":102228,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"44a0a61a85f4c4552b2994ab87bfcb1418c8b574","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":42174888,"name":"product-iots","full_name":"wso2/product-iots","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-iots","description":"Welcome to the WSO2 IoT Server source code! For info on working with the WSO2 IoT Server repository and contributing code, click the link below.","fork":false,"url":"https://api.github.com/repos/wso2/product-iots","forks_url":"https://api.github.com/repos/wso2/product-iots/forks","keys_url":"https://api.github.com/repos/wso2/product-iots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-iots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-iots/teams","hooks_url":"https://api.github.com/repos/wso2/product-iots/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-iots/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-iots/events","assignees_url":"https://api.github.com/repos/wso2/product-iots/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-iots/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-iots/tags","blobs_url":"https://api.github.com/repos/wso2/product-iots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-iots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-iots/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-iots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-iots/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-iots/languages","stargazers_url":"https://api.github.com/repos/wso2/product-iots/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-iots/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-iots/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-iots/subscription","commits_url":"https://api.github.com/repos/wso2/product-iots/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-iots/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-iots/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-iots/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-iots/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-iots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-iots/merges","archive_url":"https://api.github.com/repos/wso2/product-iots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-iots/downloads","issues_url":"https://api.github.com/repos/wso2/product-iots/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-iots/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-iots/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-iots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-iots/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-iots/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/product-iots/deployments","created_at":"2015-09-09T11:39:56Z","updated_at":"2016-07-11T04:47:51Z","pushed_at":"2016-07-21T05:25:27Z","git_url":"git://github.com/wso2/product-iots.git","ssh_url":"git@github.com:wso2/product-iots.git","clone_url":"https://github.com/wso2/product-iots.git","svn_url":"https://github.com/wso2/product-iots","homepage":"http://wso2.github.io/","size":102201,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":1,"forks":24,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/172"},"html":{"href":"https://github.com/wso2/product-iots/pull/172"},"issue":{"href":"https://api.github.com/repos/wso2/product-iots/issues/172"},"comments":{"href":"https://api.github.com/repos/wso2/product-iots/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-iots/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-iots/statuses/d5a56c462040801257672deb2e4363f85f576dd0"}}}}
{"actor":{"display_login":"charithag"}}