{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/165844067","pull_request_review_id":93844849,"id":165844067,"diff_hunk":"@@ -0,0 +1,194 @@\n+/*\n+ * Copyright (c) 2018, 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.wso2.carbon.apimgt.gateway.mediators;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.synapse.MessageContext;\n+import org.apache.synapse.core.axis2.Axis2MessageContext;\n+import org.apache.synapse.mediators.AbstractMediator;\n+import org.apache.synapse.transport.passthru.util.RelayUtils;\n+import org.wso2.carbon.apimgt.gateway.APIMgtGatewayConstants;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.APIMThreatAnalyzerException;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.AnalyzerHolder;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.analyzer.APIMThreatAnalyzer;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.configuration.ConfigurationHolder;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.configuration.JSONConfig;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.utils.ThreatExceptionHandler;\n+import org.wso2.carbon.apimgt.gateway.threatprotection.utils.ThreatProtectorConstants;\n+import org.wso2.carbon.apimgt.gateway.utils.GatewayUtils;\n+import org.wso2.carbon.apimgt.impl.APIConstants;\n+\n+import javax.xml.stream.XMLStreamException;\n+import java.io.BufferedInputStream;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.util.Map;\n+\n+/**\n+ * This mediator would protect the backend resources from the JSON threat vulnerabilities by validating the\n+ * JSON schema.\n+ */\n+public class JsonSchemaValidator extends AbstractMediator {\n+\n+    private static final Log logger = LogFactory.getLog(JsonSchemaValidator.class);\n+    /**\n+     * This mediate method validates the message body.\n+     *\n+     * @param messageContext This message context contains the request message properties of the relevant\n+     *                       API which was enabled the JSON_Validator message mediation in flow.\n+     * @return a boolean true if the message content is passed the json schema criteria.\n+     */\n+    public boolean mediate(MessageContext messageContext) {\n+        if (logger.isDebugEnabled()) {\n+            logger.debug(\"JSON schema validation mediator is activated...\");\n+        }\n+        Map<String, InputStream> inputStreams = null;\n+        org.apache.axis2.context.MessageContext axis2MC;\n+        Boolean validRequest = true;\n+        String contentType;\n+        String apiContext;\n+        String requestMethod;\n+        axis2MC = ((Axis2MessageContext) messageContext).getAxis2MessageContext();\n+        contentType = axis2MC.getProperty(ThreatProtectorConstants.CONTENT_TYPE).toString();\n+        apiContext = messageContext.getProperty(ThreatProtectorConstants.API_CONTEXT).toString();\n+        requestMethod = axis2MC.getProperty(ThreatProtectorConstants.HTTP_REQUEST_METHOD).toString();\n+\n+        if (!APIConstants.SupportedHTTPVerbs.GET.name().equalsIgnoreCase(requestMethod) &&\n+                (ThreatProtectorConstants.APPLICATION_JSON.equals(contentType) ||\n+                        ThreatProtectorConstants.TEXT_JSON.equals(contentType))) {\n+            JSONConfig jsonConfig = configureSchemaProperties(messageContext);\n+            ConfigurationHolder.addJsonConfig(jsonConfig);\n+            APIMThreatAnalyzer apimThreatAnalyzer = AnalyzerHolder.getAnalyzer(contentType);\n+            try {\n+                inputStreams = GatewayUtils.cloneRequestMessage(messageContext);\n+                if (inputStreams != null) {\n+                    InputStream inputStreamJson = inputStreams.get(ThreatProtectorConstants.JSON);\n+                    BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStreamJson);\n+                    apimThreatAnalyzer.analyze(bufferedInputStream, apiContext);\n+                }\n+            } catch (APIMThreatAnalyzerException e) {\n+                validRequest = false;\n+                String message = \"Request is failed due to JSON schema validation failure: \";\n+                logger.error(message, e);\n+                GatewayUtils.handleThreat(messageContext, ThreatProtectorConstants.HTTP_SC_CODE,\n+                        message + e.getMessage());\n+            } catch (IOException e) {\n+                String message = \"Error occurred while building the request: \";\n+                logger.error(message, e);\n+                GatewayUtils.handleThreat(messageContext, ThreatProtectorConstants.HTTP_SC_CODE,\n+                        message + e.getMessage());\n+            } finally {\n+                // return analyzer to the pool\n+                AnalyzerHolder.returnObject(apimThreatAnalyzer);\n+            }\n+        } else {\n+            GatewayUtils.handleThreat(messageContext, APIMgtGatewayConstants.HTTP_SC_CODE,\n+                    APIMgtGatewayConstants.REQUEST_TYPE_FAIL_MSG);\n+        }\n+        GatewayUtils.setOriginalInputStream(inputStreams, axis2MC);\n+        if (validRequest)","path":"components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/mediators/JsonSchemaValidator.java","position":null,"original_position":106,"commit_id":"3cddce2d2872c5b5125db13f3b2c975668fd1504","original_commit_id":"c9d68281e6bcbc3d8aec0bbe30e0ff12201740e0","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars2.githubusercontent.com/u/12996810?v=4","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"body":"fixed the issue","created_at":"2018-02-04T13:13:38Z","updated_at":"2018-02-04T13:13:38Z","html_url":"https://github.com/wso2/carbon-apimgt/pull/5016#discussion_r165844067","pull_request_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/165844067"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/5016#discussion_r165844067"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016"}},"in_reply_to_id":165841763},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016","id":165948168,"html_url":"https://github.com/wso2/carbon-apimgt/pull/5016","diff_url":"https://github.com/wso2/carbon-apimgt/pull/5016.diff","patch_url":"https://github.com/wso2/carbon-apimgt/pull/5016.patch","issue_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5016","number":5016,"state":"open","locked":false,"title":"XML,JSON Threat Protectors","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars2.githubusercontent.com/u/12996810?v=4","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"body":"**Proposed changes in this pull request**\r\nThis PR contains the feature implementation of gateway threat protector in API Manager 2.2.0. Following are the functionalities enabled with this feature.\r\n- XML request validation with XML schema validation.\r\n- JSON request validation.\r\n- Combine threat protection policies\r\n\r\n### Checklist (for reviewing)\r\n\r\n#### General\r\n\r\n- [ ] **Is this PR explained thoroughly?** All code changes must be accounted for in the PR description.\r\n- [ ] **Is the PR labeled correctly?**\r\n\r\n#### Functionality\r\n\r\n- [ ] **Are all requirements met?** Compare implemented functionality with the requirements specification.\r\n- [ ] **Does the UI work as expected?** There should be no Javascript errors in the console; all resources should load. There should be no unexpected errors. Deliberately try to break the feature to find out if there are corner cases that are not handled.\r\n\r\n#### Code\r\n\r\n- [ ] **Do you fully understand the introduced changes to the code?** If not ask for clarification, it might uncover ways to solve a problem in a more elegant and efficient way.\r\n- [ ] **Does the PR introduce any inefficient database requests?** Use the debug server to check for duplicate requests.\r\n- [ ] **Are all necessary strings marked for translation?** All strings that are exposed to users via the UI must be [marked for translation](https://docs.djangoproject.com/en/1.10/topics/i18n/translation/).\r\n\r\n#### Tests\r\n\r\n- [ ] **Are there sufficient test cases?** Ensure that all components are tested individually; models, forms, and serializers should be tested in isolation even if a test for a view covers these components.\r\n- [ ] **If this is a bug fix, are tests for the issue in place?**  There must be a test case for the bug to ensure the issue won’t regress. Make sure that the tests break without the new code to fix the issue.\r\n- [ ] **If this is a new feature or a significant change to an existing feature?** has the manual testing spreadsheet been updated with instructions for manual testing?\r\n\r\n#### Security\r\n\r\n- [ ] **Confirm this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.**\r\n- [ ] **Are all UI and API inputs run through forms or serializers?**\r\n- [ ] **Are all external inputs validated and sanitized appropriately?**\r\n- [ ] **Does all branching logic have a default case?**\r\n- [ ] **Does this solution handle outliers and edge cases gracefully?**\r\n- [ ] **Are all external communications secured and restricted to SSL?**\r\n\r\n#### Documentation\r\n\r\n- [ ] **Are changes to the UI documented in the platform docs?** If this PR introduces new platform site functionality or changes existing ones, the changes should be documented.\r\n- [ ] **Are changes to the API documented in the API docs?** If this PR introduces new API functionality or changes existing ones, the changes must be documented.\r\n- [ ] **Are reusable components documented?** If this PR introduces components that are relevant to other developers (for instance a mixin for a view or a generic form) they should be documented in the Wiki.\r\n","created_at":"2018-01-30T10:58:29Z","updated_at":"2018-02-04T13:13:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ac064f7df48f98368cfb4625a4ad2082fc19308","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5016/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/3cddce2d2872c5b5125db13f3b2c975668fd1504","head":{"label":"hasuniea:6.x","ref":"6.x","sha":"3cddce2d2872c5b5125db13f3b2c975668fd1504","user":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars2.githubusercontent.com/u/12996810?v=4","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"repo":{"id":116940078,"name":"carbon-apimgt","full_name":"hasuniea/carbon-apimgt","owner":{"login":"hasuniea","id":12996810,"avatar_url":"https://avatars2.githubusercontent.com/u/12996810?v=4","gravatar_id":"","url":"https://api.github.com/users/hasuniea","html_url":"https://github.com/hasuniea","followers_url":"https://api.github.com/users/hasuniea/followers","following_url":"https://api.github.com/users/hasuniea/following{/other_user}","gists_url":"https://api.github.com/users/hasuniea/gists{/gist_id}","starred_url":"https://api.github.com/users/hasuniea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasuniea/subscriptions","organizations_url":"https://api.github.com/users/hasuniea/orgs","repos_url":"https://api.github.com/users/hasuniea/repos","events_url":"https://api.github.com/users/hasuniea/events{/privacy}","received_events_url":"https://api.github.com/users/hasuniea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hasuniea/carbon-apimgt","description":null,"fork":true,"url":"https://api.github.com/repos/hasuniea/carbon-apimgt","forks_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/releases{/id}","deployments_url":"https://api.github.com/repos/hasuniea/carbon-apimgt/deployments","created_at":"2018-01-10T09:54:14Z","updated_at":"2018-01-10T09:54:22Z","pushed_at":"2018-02-04T13:12:53Z","git_url":"git://github.com/hasuniea/carbon-apimgt.git","ssh_url":"git@github.com:hasuniea/carbon-apimgt.git","clone_url":"https://github.com/hasuniea/carbon-apimgt.git","svn_url":"https://github.com/hasuniea/carbon-apimgt","homepage":null,"size":227199,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:6.x","ref":"6.x","sha":"753ff0421132c281c7b19cb1ccf8b4e2109ff320","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","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":17201744,"name":"carbon-apimgt","full_name":"wso2/carbon-apimgt","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","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/carbon-apimgt","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/carbon-apimgt","forks_url":"https://api.github.com/repos/wso2/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/wso2/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/wso2/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/wso2/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-apimgt/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/carbon-apimgt/deployments","created_at":"2014-02-26T06:46:48Z","updated_at":"2018-01-28T12:18:12Z","pushed_at":"2018-02-04T13:12:55Z","git_url":"git://github.com/wso2/carbon-apimgt.git","ssh_url":"git@github.com:wso2/carbon-apimgt.git","clone_url":"https://github.com/wso2/carbon-apimgt.git","svn_url":"https://github.com/wso2/carbon-apimgt","homepage":null,"size":228115,"stargazers_count":43,"watchers_count":43,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":291,"mirror_url":null,"archived":false,"open_issues_count":70,"license":null,"forks":291,"open_issues":70,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/5016"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5016"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5016/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/5016/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/3cddce2d2872c5b5125db13f3b2c975668fd1504"}},"author_association":"NONE"}}
{"actor":{"display_login":"hasuniea"}}