{"action":"created","comment":{"url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/comments/57552969","id":57552969,"diff_hunk":"@@ -0,0 +1,100 @@\n+/**\n+ * @author Francisco de la Vega <fdelavega@conwet.com>\n+ *         Jaime Pajuelo <jpajuelo@conwet.com>\n+ *         Aitor Magán <amagan@conwet.com>\n+ */\n+\n+\n+(function () {\n+\n+    'use strict';\n+\n+    angular\n+        .module('app')\n+        .factory('Individual', IndividualService);\n+\n+    function IndividualService($q, $resource, URLS, User) {\n+        var Individual = $resource(URLS.PARTY_MANAGEMENT + '/individual/:partyId', {}, {\n+            update: {method: 'PUT'}\n+        });\n+\n+        Individual.prototype.getUser = getUser;\n+\n+        var MEDIUM_TYPES = {\n+            EMAIL_ADDRESS: 'email address',\n+            TELEPHONE_NUMBER: 'telephone number',\n+            POSTAL_ADDRESS: 'postal address'\n+        };\n+\n+        return {\n+            MEDIUM_TYPES: MEDIUM_TYPES,\n+            create: create,\n+            detail: detail,\n+            update: update,\n+            launch: launch\n+        };\n+\n+        function create(data) {\n+            var deferred = $q.defer();\n+\n+            Individual.save(data, function (individualCreated) {\n+                deferred.resolve(individualCreated);\n+            }, function (response) {\n+                deferred.reject(response);\n+            });\n+\n+            return deferred.promise;\n+        }\n+\n+        function detail() {","path":"public/resources/core/js/api/party/individual.service.js","position":49,"original_position":49,"commit_id":"20a65c4266e7b63033f9259950bcc43f71990509","original_commit_id":"20a65c4266e7b63033f9259950bcc43f71990509","user":{"login":"aitormagan","id":2526562,"avatar_url":"https://avatars.githubusercontent.com/u/2526562?v=3","gravatar_id":"","url":"https://api.github.com/users/aitormagan","html_url":"https://github.com/aitormagan","followers_url":"https://api.github.com/users/aitormagan/followers","following_url":"https://api.github.com/users/aitormagan/following{/other_user}","gists_url":"https://api.github.com/users/aitormagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aitormagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitormagan/subscriptions","organizations_url":"https://api.github.com/users/aitormagan/orgs","repos_url":"https://api.github.com/users/aitormagan/repos","events_url":"https://api.github.com/users/aitormagan/events{/privacy}","received_events_url":"https://api.github.com/users/aitormagan/received_events","type":"User","site_admin":false},"body":"In some cases you would be interested in retrieving information of different users (not necessarily the one logged in). ","created_at":"2016-03-28T08:01:10Z","updated_at":"2016-03-28T08:01:10Z","html_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55#discussion_r57552969","pull_request_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/comments/57552969"},"html":{"href":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55#discussion_r57552969"},"pull_request":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55","id":63378706,"html_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55","diff_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55.diff","patch_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55.patch","issue_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/55","number":55,"state":"open","locked":false,"title":"Personal information view","user":{"login":"jpajuelo","id":6609719,"avatar_url":"https://avatars.githubusercontent.com/u/6609719?v=3","gravatar_id":"","url":"https://api.github.com/users/jpajuelo","html_url":"https://github.com/jpajuelo","followers_url":"https://api.github.com/users/jpajuelo/followers","following_url":"https://api.github.com/users/jpajuelo/following{/other_user}","gists_url":"https://api.github.com/users/jpajuelo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpajuelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpajuelo/subscriptions","organizations_url":"https://api.github.com/users/jpajuelo/orgs","repos_url":"https://api.github.com/users/jpajuelo/repos","events_url":"https://api.github.com/users/jpajuelo/events{/privacy}","received_events_url":"https://api.github.com/users/jpajuelo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-18T14:06:26Z","updated_at":"2016-03-28T08:01:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b78cca5cc823d3f3cc05143bd0f3a060490bcdb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55/commits","review_comments_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55/comments","review_comment_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/55/comments","statuses_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/statuses/20a65c4266e7b63033f9259950bcc43f71990509","head":{"label":"jpajuelo:partyIntegration","ref":"partyIntegration","sha":"20a65c4266e7b63033f9259950bcc43f71990509","user":{"login":"jpajuelo","id":6609719,"avatar_url":"https://avatars.githubusercontent.com/u/6609719?v=3","gravatar_id":"","url":"https://api.github.com/users/jpajuelo","html_url":"https://github.com/jpajuelo","followers_url":"https://api.github.com/users/jpajuelo/followers","following_url":"https://api.github.com/users/jpajuelo/following{/other_user}","gists_url":"https://api.github.com/users/jpajuelo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpajuelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpajuelo/subscriptions","organizations_url":"https://api.github.com/users/jpajuelo/orgs","repos_url":"https://api.github.com/users/jpajuelo/repos","events_url":"https://api.github.com/users/jpajuelo/events{/privacy}","received_events_url":"https://api.github.com/users/jpajuelo/received_events","type":"User","site_admin":false},"repo":{"id":45995884,"name":"business-ecosystem-logic-proxy","full_name":"jpajuelo/business-ecosystem-logic-proxy","owner":{"login":"jpajuelo","id":6609719,"avatar_url":"https://avatars.githubusercontent.com/u/6609719?v=3","gravatar_id":"","url":"https://api.github.com/users/jpajuelo","html_url":"https://github.com/jpajuelo","followers_url":"https://api.github.com/users/jpajuelo/followers","following_url":"https://api.github.com/users/jpajuelo/following{/other_user}","gists_url":"https://api.github.com/users/jpajuelo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpajuelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpajuelo/subscriptions","organizations_url":"https://api.github.com/users/jpajuelo/orgs","repos_url":"https://api.github.com/users/jpajuelo/repos","events_url":"https://api.github.com/users/jpajuelo/events{/privacy}","received_events_url":"https://api.github.com/users/jpajuelo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpajuelo/business-ecosystem-logic-proxy","description":"PEP Proxy - Wilma","fork":true,"url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy","forks_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/forks","keys_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/teams","hooks_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/hooks","issue_events_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/events","assignees_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/tags","blobs_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/languages","stargazers_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/stargazers","contributors_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/contributors","subscribers_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/subscribers","subscription_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/subscription","commits_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/merges","archive_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/downloads","issues_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/labels{/name}","releases_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/jpajuelo/business-ecosystem-logic-proxy/deployments","created_at":"2015-11-11T17:01:27Z","updated_at":"2015-12-10T20:57:23Z","pushed_at":"2016-03-23T10:11:48Z","git_url":"git://github.com/jpajuelo/business-ecosystem-logic-proxy.git","ssh_url":"git@github.com:jpajuelo/business-ecosystem-logic-proxy.git","clone_url":"https://github.com/jpajuelo/business-ecosystem-logic-proxy.git","svn_url":"https://github.com/jpajuelo/business-ecosystem-logic-proxy","homepage":"http://catalogue.fiware.org/enablers/pep-proxy-wilma","size":2474,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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":"FIWARE-TMForum:partyIntegration","ref":"partyIntegration","sha":"99dcd3d7fe2b9a97dddcc80ba47e5319292856ad","user":{"login":"FIWARE-TMForum","id":15013013,"avatar_url":"https://avatars.githubusercontent.com/u/15013013?v=3","gravatar_id":"","url":"https://api.github.com/users/FIWARE-TMForum","html_url":"https://github.com/FIWARE-TMForum","followers_url":"https://api.github.com/users/FIWARE-TMForum/followers","following_url":"https://api.github.com/users/FIWARE-TMForum/following{/other_user}","gists_url":"https://api.github.com/users/FIWARE-TMForum/gists{/gist_id}","starred_url":"https://api.github.com/users/FIWARE-TMForum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FIWARE-TMForum/subscriptions","organizations_url":"https://api.github.com/users/FIWARE-TMForum/orgs","repos_url":"https://api.github.com/users/FIWARE-TMForum/repos","events_url":"https://api.github.com/users/FIWARE-TMForum/events{/privacy}","received_events_url":"https://api.github.com/users/FIWARE-TMForum/received_events","type":"Organization","site_admin":false},"repo":{"id":43949977,"name":"business-ecosystem-logic-proxy","full_name":"FIWARE-TMForum/business-ecosystem-logic-proxy","owner":{"login":"FIWARE-TMForum","id":15013013,"avatar_url":"https://avatars.githubusercontent.com/u/15013013?v=3","gravatar_id":"","url":"https://api.github.com/users/FIWARE-TMForum","html_url":"https://github.com/FIWARE-TMForum","followers_url":"https://api.github.com/users/FIWARE-TMForum/followers","following_url":"https://api.github.com/users/FIWARE-TMForum/following{/other_user}","gists_url":"https://api.github.com/users/FIWARE-TMForum/gists{/gist_id}","starred_url":"https://api.github.com/users/FIWARE-TMForum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FIWARE-TMForum/subscriptions","organizations_url":"https://api.github.com/users/FIWARE-TMForum/orgs","repos_url":"https://api.github.com/users/FIWARE-TMForum/repos","events_url":"https://api.github.com/users/FIWARE-TMForum/events{/privacy}","received_events_url":"https://api.github.com/users/FIWARE-TMForum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy","description":"Business Logic Layer for the TMForum Frameworkx APIs + Portal to access them in an easy way","fork":false,"url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy","forks_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/forks","keys_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/teams","hooks_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/hooks","issue_events_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/events","assignees_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/tags","blobs_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/languages","stargazers_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/stargazers","contributors_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/contributors","subscribers_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/subscribers","subscription_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/subscription","commits_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/merges","archive_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/downloads","issues_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/labels{/name}","releases_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/deployments","created_at":"2015-10-09T10:53:07Z","updated_at":"2016-01-25T11:13:15Z","pushed_at":"2016-03-28T07:40:29Z","git_url":"git://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy.git","ssh_url":"git@github.com:FIWARE-TMForum/business-ecosystem-logic-proxy.git","clone_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy.git","svn_url":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy","homepage":"","size":2471,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55"},"html":{"href":"https://github.com/FIWARE-TMForum/business-ecosystem-logic-proxy/pull/55"},"issue":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/55"},"comments":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/FIWARE-TMForum/business-ecosystem-logic-proxy/statuses/20a65c4266e7b63033f9259950bcc43f71990509"}}}}