{"action":"created","comment":{"url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/comments/141258550","pull_request_review_id":65443562,"id":141258550,"diff_hunk":"@@ -0,0 +1,68 @@\n+/*\n+ * TeleStax, Open Source Cloud Communications\n+ * Copyright 2011-2014, Telestax Inc and individual contributors\n+ * by the @authors tag.\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * under the terms of the GNU Affero General Public License as\n+ * published by the Free Software Foundation; either version 3 of\n+ * the License, or (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>\n+ *\n+ */\n+package org.restcomm.connect.http;\n+\n+import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;\n+\n+import javax.ws.rs.GET;\n+import javax.ws.rs.POST;\n+import javax.ws.rs.PUT;\n+import javax.ws.rs.Path;\n+import javax.ws.rs.PathParam;\n+import javax.ws.rs.core.Context;\n+import javax.ws.rs.core.MultivaluedMap;\n+import javax.ws.rs.core.Response;\n+import javax.ws.rs.core.UriInfo;\n+\n+import org.restcomm.connect.commons.annotations.concurrency.ThreadSafe;\n+\n+/**\n+ * @author maria farooq\n+ */\n+@Path(\"/Organizations.json\")\n+@ThreadSafe\n+public final class OrganizationsJsonEndpoint extends OrganizationsEndpoint {\n+    public OrganizationsJsonEndpoint() {\n+        super();\n+    }\n+\n+    @Path(\"/{organizationSid}\")\n+    @GET\n+    public Response getOrganizationAsJson(@PathParam(\"organizationSid\") final String organizationSid) {\n+        return getOrganization(organizationSid, APPLICATION_JSON_TYPE);\n+    }\n+\n+    @GET\n+    public Response getOrganizations(@Context UriInfo info) {\n+        return getOrganizations(info, APPLICATION_JSON_TYPE);\n+    }\n+\n+    @Path(\"/{domainName}\")\n+    @POST\n+    public Response putOrganizationPost(@PathParam(\"domainName\") final String domainName, final MultivaluedMap<String, String> data) {\n+        return putOrganization(domainName, data, APPLICATION_JSON_TYPE);\n+    }\n+\n+    @Path(\"/{domainName}\")\n+    @PUT","path":"restcomm/restcomm.http/src/main/java/org/restcomm/connect/http/OrganizationsJsonEndpoint.java","position":64,"original_position":64,"commit_id":"7be28b69a32463c615037c6583e3f398c20e81e3","original_commit_id":"7be28b69a32463c615037c6583e3f398c20e81e3","user":{"login":"maria-farooq","id":17044714,"avatar_url":"https://avatars1.githubusercontent.com/u/17044714?v=4","gravatar_id":"","url":"https://api.github.com/users/maria-farooq","html_url":"https://github.com/maria-farooq","followers_url":"https://api.github.com/users/maria-farooq/followers","following_url":"https://api.github.com/users/maria-farooq/following{/other_user}","gists_url":"https://api.github.com/users/maria-farooq/gists{/gist_id}","starred_url":"https://api.github.com/users/maria-farooq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maria-farooq/subscriptions","organizations_url":"https://api.github.com/users/maria-farooq/orgs","repos_url":"https://api.github.com/users/maria-farooq/repos","events_url":"https://api.github.com/users/maria-farooq/events{/privacy}","received_events_url":"https://api.github.com/users/maria-farooq/received_events","type":"User","site_admin":false},"body":"on this particular mentioned path both PUT and POST have same implementation i.e. used to create new organization. Later in next sprint we will add another POST method for updating organization","created_at":"2017-09-27T07:04:13Z","updated_at":"2017-09-27T07:04:13Z","html_url":"https://github.com/RestComm/Restcomm-Connect/pull/2522#discussion_r141258550","pull_request_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/comments/141258550"},"html":{"href":"https://github.com/RestComm/Restcomm-Connect/pull/2522#discussion_r141258550"},"pull_request":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522"}},"in_reply_to_id":141100711},"pull_request":{"url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522","id":143155556,"html_url":"https://github.com/RestComm/Restcomm-Connect/pull/2522","diff_url":"https://github.com/RestComm/Restcomm-Connect/pull/2522.diff","patch_url":"https://github.com/RestComm/Restcomm-Connect/pull/2522.patch","issue_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/2522","number":2522,"state":"open","locked":false,"title":"Issue 2493","user":{"login":"maria-farooq","id":17044714,"avatar_url":"https://avatars1.githubusercontent.com/u/17044714?v=4","gravatar_id":"","url":"https://api.github.com/users/maria-farooq","html_url":"https://github.com/maria-farooq","followers_url":"https://api.github.com/users/maria-farooq/followers","following_url":"https://api.github.com/users/maria-farooq/following{/other_user}","gists_url":"https://api.github.com/users/maria-farooq/gists{/gist_id}","starred_url":"https://api.github.com/users/maria-farooq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maria-farooq/subscriptions","organizations_url":"https://api.github.com/users/maria-farooq/orgs","repos_url":"https://api.github.com/users/maria-farooq/repos","events_url":"https://api.github.com/users/maria-farooq/events{/privacy}","received_events_url":"https://api.github.com/users/maria-farooq/received_events","type":"User","site_admin":false},"body":"#2493 \r\n\r\nThis PR also need to reviwed along side https://bitbucket.org/telestax/telscale-restcomm/pull-requests/37/issue-2493/diff","created_at":"2017-09-26T14:42:56Z","updated_at":"2017-09-27T07:04:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a4cad268b773f02b37b9331ddc7ba092b3e065d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522/commits","review_comments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522/comments","review_comment_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/2522/comments","statuses_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/statuses/7be28b69a32463c615037c6583e3f398c20e81e3","head":{"label":"RestComm:issue-2493","ref":"issue-2493","sha":"7be28b69a32463c615037c6583e3f398c20e81e3","user":{"login":"RestComm","id":667380,"avatar_url":"https://avatars3.githubusercontent.com/u/667380?v=4","gravatar_id":"","url":"https://api.github.com/users/RestComm","html_url":"https://github.com/RestComm","followers_url":"https://api.github.com/users/RestComm/followers","following_url":"https://api.github.com/users/RestComm/following{/other_user}","gists_url":"https://api.github.com/users/RestComm/gists{/gist_id}","starred_url":"https://api.github.com/users/RestComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestComm/subscriptions","organizations_url":"https://api.github.com/users/RestComm/orgs","repos_url":"https://api.github.com/users/RestComm/repos","events_url":"https://api.github.com/users/RestComm/events{/privacy}","received_events_url":"https://api.github.com/users/RestComm/received_events","type":"Organization","site_admin":false},"repo":{"id":5455458,"name":"Restcomm-Connect","full_name":"RestComm/Restcomm-Connect","owner":{"login":"RestComm","id":667380,"avatar_url":"https://avatars3.githubusercontent.com/u/667380?v=4","gravatar_id":"","url":"https://api.github.com/users/RestComm","html_url":"https://github.com/RestComm","followers_url":"https://api.github.com/users/RestComm/followers","following_url":"https://api.github.com/users/RestComm/following{/other_user}","gists_url":"https://api.github.com/users/RestComm/gists{/gist_id}","starred_url":"https://api.github.com/users/RestComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestComm/subscriptions","organizations_url":"https://api.github.com/users/RestComm/orgs","repos_url":"https://api.github.com/users/RestComm/repos","events_url":"https://api.github.com/users/RestComm/events{/privacy}","received_events_url":"https://api.github.com/users/RestComm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RestComm/Restcomm-Connect","description":"The Open Source Cloud Communications Platform","fork":false,"url":"https://api.github.com/repos/RestComm/Restcomm-Connect","forks_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/forks","keys_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/teams","hooks_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/hooks","issue_events_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/events{/number}","events_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/events","assignees_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/assignees{/user}","branches_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/branches{/branch}","tags_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/tags","blobs_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/statuses/{sha}","languages_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/languages","stargazers_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/stargazers","contributors_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/contributors","subscribers_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/subscribers","subscription_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/subscription","commits_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/contents/{+path}","compare_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/merges","archive_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/downloads","issues_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues{/number}","pulls_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls{/number}","milestones_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/milestones{/number}","notifications_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/labels{/name}","releases_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/releases{/id}","deployments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/deployments","created_at":"2012-08-17T17:47:44Z","updated_at":"2017-09-16T14:11:42Z","pushed_at":"2017-09-26T23:27:25Z","git_url":"git://github.com/RestComm/Restcomm-Connect.git","ssh_url":"git@github.com:RestComm/Restcomm-Connect.git","clone_url":"https://github.com/RestComm/Restcomm-Connect.git","svn_url":"https://github.com/RestComm/Restcomm-Connect","homepage":"http://www.restcomm.com/","size":155717,"stargazers_count":157,"watchers_count":157,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":157,"mirror_url":null,"open_issues_count":825,"forks":157,"open_issues":825,"watchers":157,"default_branch":"master"}},"base":{"label":"RestComm:master","ref":"master","sha":"9f910149547484f17c8eeceabb03a6fb3d1720d8","user":{"login":"RestComm","id":667380,"avatar_url":"https://avatars3.githubusercontent.com/u/667380?v=4","gravatar_id":"","url":"https://api.github.com/users/RestComm","html_url":"https://github.com/RestComm","followers_url":"https://api.github.com/users/RestComm/followers","following_url":"https://api.github.com/users/RestComm/following{/other_user}","gists_url":"https://api.github.com/users/RestComm/gists{/gist_id}","starred_url":"https://api.github.com/users/RestComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestComm/subscriptions","organizations_url":"https://api.github.com/users/RestComm/orgs","repos_url":"https://api.github.com/users/RestComm/repos","events_url":"https://api.github.com/users/RestComm/events{/privacy}","received_events_url":"https://api.github.com/users/RestComm/received_events","type":"Organization","site_admin":false},"repo":{"id":5455458,"name":"Restcomm-Connect","full_name":"RestComm/Restcomm-Connect","owner":{"login":"RestComm","id":667380,"avatar_url":"https://avatars3.githubusercontent.com/u/667380?v=4","gravatar_id":"","url":"https://api.github.com/users/RestComm","html_url":"https://github.com/RestComm","followers_url":"https://api.github.com/users/RestComm/followers","following_url":"https://api.github.com/users/RestComm/following{/other_user}","gists_url":"https://api.github.com/users/RestComm/gists{/gist_id}","starred_url":"https://api.github.com/users/RestComm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestComm/subscriptions","organizations_url":"https://api.github.com/users/RestComm/orgs","repos_url":"https://api.github.com/users/RestComm/repos","events_url":"https://api.github.com/users/RestComm/events{/privacy}","received_events_url":"https://api.github.com/users/RestComm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RestComm/Restcomm-Connect","description":"The Open Source Cloud Communications Platform","fork":false,"url":"https://api.github.com/repos/RestComm/Restcomm-Connect","forks_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/forks","keys_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/teams","hooks_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/hooks","issue_events_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/events{/number}","events_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/events","assignees_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/assignees{/user}","branches_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/branches{/branch}","tags_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/tags","blobs_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/refs{/sha}","trees_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/statuses/{sha}","languages_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/languages","stargazers_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/stargazers","contributors_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/contributors","subscribers_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/subscribers","subscription_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/subscription","commits_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/commits{/sha}","git_commits_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/git/commits{/sha}","comments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/comments{/number}","issue_comment_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/comments{/number}","contents_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/contents/{+path}","compare_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/merges","archive_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/downloads","issues_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues{/number}","pulls_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls{/number}","milestones_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/milestones{/number}","notifications_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/labels{/name}","releases_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/releases{/id}","deployments_url":"https://api.github.com/repos/RestComm/Restcomm-Connect/deployments","created_at":"2012-08-17T17:47:44Z","updated_at":"2017-09-16T14:11:42Z","pushed_at":"2017-09-26T23:27:25Z","git_url":"git://github.com/RestComm/Restcomm-Connect.git","ssh_url":"git@github.com:RestComm/Restcomm-Connect.git","clone_url":"https://github.com/RestComm/Restcomm-Connect.git","svn_url":"https://github.com/RestComm/Restcomm-Connect","homepage":"http://www.restcomm.com/","size":155717,"stargazers_count":157,"watchers_count":157,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":157,"mirror_url":null,"open_issues_count":825,"forks":157,"open_issues":825,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522"},"html":{"href":"https://github.com/RestComm/Restcomm-Connect/pull/2522"},"issue":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/2522"},"comments":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/issues/2522/comments"},"review_comments":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522/comments"},"review_comment":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/pulls/2522/commits"},"statuses":{"href":"https://api.github.com/repos/RestComm/Restcomm-Connect/statuses/7be28b69a32463c615037c6583e3f398c20e81e3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"maria-farooq"}}