{"action":"created","comment":{"url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/comments/23920445","id":23920445,"diff_hunk":"@@ -14,12 +17,25 @@ public class PolicyController : ApiController\n         // GET: api/Policy\n         public IEnumerable<PolicySummary> Get()\n         {\n-            return new PolicySummary[] \n-            {\n-                new PolicySummary { Id= \"asdf1\", ProjectName=\"Alyssa\", ReportTime = \"10:00\" },\n-                new PolicySummary { Id= \"asdf2\", ProjectName=\"Board Prospects\" },\n-                new PolicySummary { Id= \"asdf3\", ProjectName=\"Daily Report Tool \", ReportTime = \"09:00\" },\n-            };\n+\t\t\tvar urlQs = HttpUtility.ParseQueryString(Request.Headers.Referrer.Query);\n+\t\t\tvar baseUrl = urlQs[\"xdm_e\"] + urlQs[\"cp\"];","path":"DailyReportWeb/Controllers/Api/PolicyController.cs","position":21,"original_position":21,"commit_id":"bcb081c68672b039522d6fdfc5042e5932eb3d1f","original_commit_id":"bcb081c68672b039522d6fdfc5042e5932eb3d1f","user":{"login":"DanBadea","id":1314911,"avatar_url":"https://avatars.githubusercontent.com/u/1314911?v=3","gravatar_id":"","url":"https://api.github.com/users/DanBadea","html_url":"https://github.com/DanBadea","followers_url":"https://api.github.com/users/DanBadea/followers","following_url":"https://api.github.com/users/DanBadea/following{/other_user}","gists_url":"https://api.github.com/users/DanBadea/gists{/gist_id}","starred_url":"https://api.github.com/users/DanBadea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanBadea/subscriptions","organizations_url":"https://api.github.com/users/DanBadea/orgs","repos_url":"https://api.github.com/users/DanBadea/repos","events_url":"https://api.github.com/users/DanBadea/events{/privacy}","received_events_url":"https://api.github.com/users/DanBadea/received_events","type":"User","site_admin":false},"body":"Astea trebuie puse ca si parametrii pe actiune, nu luate asa cu ParseQueryString.\r\nCel mai bine e sa faci o clasa si sa o pui pe aia ca si parametru unic pe actiune. Dar daca sunt doar 2 parametrii si fara merge.\r\n","created_at":"2015-02-02T12:04:39Z","updated_at":"2015-02-02T12:04:39Z","html_url":"https://github.com/equilobe/DailyReportingTools/pull/6#discussion_r23920445","pull_request_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/comments/23920445"},"html":{"href":"https://github.com/equilobe/DailyReportingTools/pull/6#discussion_r23920445"},"pull_request":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6","id":28298858,"html_url":"https://github.com/equilobe/DailyReportingTools/pull/6","diff_url":"https://github.com/equilobe/DailyReportingTools/pull/6.diff","patch_url":"https://github.com/equilobe/DailyReportingTools/pull/6.patch","issue_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/6","number":6,"state":"open","locked":false,"title":"Drt 82 set daily report from ui","user":{"login":"vladichimescu","id":8413501,"avatar_url":"https://avatars.githubusercontent.com/u/8413501?v=3","gravatar_id":"","url":"https://api.github.com/users/vladichimescu","html_url":"https://github.com/vladichimescu","followers_url":"https://api.github.com/users/vladichimescu/followers","following_url":"https://api.github.com/users/vladichimescu/following{/other_user}","gists_url":"https://api.github.com/users/vladichimescu/gists{/gist_id}","starred_url":"https://api.github.com/users/vladichimescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladichimescu/subscriptions","organizations_url":"https://api.github.com/users/vladichimescu/orgs","repos_url":"https://api.github.com/users/vladichimescu/repos","events_url":"https://api.github.com/users/vladichimescu/events{/privacy}","received_events_url":"https://api.github.com/users/vladichimescu/received_events","type":"User","site_admin":false},"body":"TO DO:\r\n- add DataContract to PolicySummary in order to help when saving the policy from UI [for now it's implemented for functionality]\r\n- add ability to create Policy using all fields from PolicySummary [now, the key is set in GeneratedProperties]\r\n- set ProjectId to String instead of Int","created_at":"2015-01-29T17:39:46Z","updated_at":"2015-02-02T12:04:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f2287907abd77e8582fa89d13d9666e437314d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6/commits","review_comments_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6/comments","review_comment_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/6/comments","statuses_url":"https://api.github.com/repos/equilobe/DailyReportingTools/statuses/bcb081c68672b039522d6fdfc5042e5932eb3d1f","head":{"label":"equilobe:DRT-82-set-daily-report-from-ui","ref":"DRT-82-set-daily-report-from-ui","sha":"bcb081c68672b039522d6fdfc5042e5932eb3d1f","user":{"login":"equilobe","id":8233379,"avatar_url":"https://avatars.githubusercontent.com/u/8233379?v=3","gravatar_id":"","url":"https://api.github.com/users/equilobe","html_url":"https://github.com/equilobe","followers_url":"https://api.github.com/users/equilobe/followers","following_url":"https://api.github.com/users/equilobe/following{/other_user}","gists_url":"https://api.github.com/users/equilobe/gists{/gist_id}","starred_url":"https://api.github.com/users/equilobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equilobe/subscriptions","organizations_url":"https://api.github.com/users/equilobe/orgs","repos_url":"https://api.github.com/users/equilobe/repos","events_url":"https://api.github.com/users/equilobe/events{/privacy}","received_events_url":"https://api.github.com/users/equilobe/received_events","type":"Organization","site_admin":false},"repo":{"id":23419061,"name":"DailyReportingTools","full_name":"equilobe/DailyReportingTools","owner":{"login":"equilobe","id":8233379,"avatar_url":"https://avatars.githubusercontent.com/u/8233379?v=3","gravatar_id":"","url":"https://api.github.com/users/equilobe","html_url":"https://github.com/equilobe","followers_url":"https://api.github.com/users/equilobe/followers","following_url":"https://api.github.com/users/equilobe/following{/other_user}","gists_url":"https://api.github.com/users/equilobe/gists{/gist_id}","starred_url":"https://api.github.com/users/equilobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equilobe/subscriptions","organizations_url":"https://api.github.com/users/equilobe/orgs","repos_url":"https://api.github.com/users/equilobe/repos","events_url":"https://api.github.com/users/equilobe/events{/privacy}","received_events_url":"https://api.github.com/users/equilobe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/equilobe/DailyReportingTools","description":"Reporting tools for daily SVN/GitHub commits and JIRA work logs.","fork":false,"url":"https://api.github.com/repos/equilobe/DailyReportingTools","forks_url":"https://api.github.com/repos/equilobe/DailyReportingTools/forks","keys_url":"https://api.github.com/repos/equilobe/DailyReportingTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equilobe/DailyReportingTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equilobe/DailyReportingTools/teams","hooks_url":"https://api.github.com/repos/equilobe/DailyReportingTools/hooks","issue_events_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/events{/number}","events_url":"https://api.github.com/repos/equilobe/DailyReportingTools/events","assignees_url":"https://api.github.com/repos/equilobe/DailyReportingTools/assignees{/user}","branches_url":"https://api.github.com/repos/equilobe/DailyReportingTools/branches{/branch}","tags_url":"https://api.github.com/repos/equilobe/DailyReportingTools/tags","blobs_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equilobe/DailyReportingTools/statuses/{sha}","languages_url":"https://api.github.com/repos/equilobe/DailyReportingTools/languages","stargazers_url":"https://api.github.com/repos/equilobe/DailyReportingTools/stargazers","contributors_url":"https://api.github.com/repos/equilobe/DailyReportingTools/contributors","subscribers_url":"https://api.github.com/repos/equilobe/DailyReportingTools/subscribers","subscription_url":"https://api.github.com/repos/equilobe/DailyReportingTools/subscription","commits_url":"https://api.github.com/repos/equilobe/DailyReportingTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/equilobe/DailyReportingTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/comments/{number}","contents_url":"https://api.github.com/repos/equilobe/DailyReportingTools/contents/{+path}","compare_url":"https://api.github.com/repos/equilobe/DailyReportingTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equilobe/DailyReportingTools/merges","archive_url":"https://api.github.com/repos/equilobe/DailyReportingTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equilobe/DailyReportingTools/downloads","issues_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues{/number}","pulls_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls{/number}","milestones_url":"https://api.github.com/repos/equilobe/DailyReportingTools/milestones{/number}","notifications_url":"https://api.github.com/repos/equilobe/DailyReportingTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equilobe/DailyReportingTools/labels{/name}","releases_url":"https://api.github.com/repos/equilobe/DailyReportingTools/releases{/id}","created_at":"2014-08-28T07:22:37Z","updated_at":"2015-02-02T12:01:52Z","pushed_at":"2015-02-02T12:01:51Z","git_url":"git://github.com/equilobe/DailyReportingTools.git","ssh_url":"git@github.com:equilobe/DailyReportingTools.git","clone_url":"https://github.com/equilobe/DailyReportingTools.git","svn_url":"https://github.com/equilobe/DailyReportingTools","homepage":null,"size":6800,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"equilobe:master","ref":"master","sha":"4ed64325458cf8c60b7ddf04f49fd78a76716699","user":{"login":"equilobe","id":8233379,"avatar_url":"https://avatars.githubusercontent.com/u/8233379?v=3","gravatar_id":"","url":"https://api.github.com/users/equilobe","html_url":"https://github.com/equilobe","followers_url":"https://api.github.com/users/equilobe/followers","following_url":"https://api.github.com/users/equilobe/following{/other_user}","gists_url":"https://api.github.com/users/equilobe/gists{/gist_id}","starred_url":"https://api.github.com/users/equilobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equilobe/subscriptions","organizations_url":"https://api.github.com/users/equilobe/orgs","repos_url":"https://api.github.com/users/equilobe/repos","events_url":"https://api.github.com/users/equilobe/events{/privacy}","received_events_url":"https://api.github.com/users/equilobe/received_events","type":"Organization","site_admin":false},"repo":{"id":23419061,"name":"DailyReportingTools","full_name":"equilobe/DailyReportingTools","owner":{"login":"equilobe","id":8233379,"avatar_url":"https://avatars.githubusercontent.com/u/8233379?v=3","gravatar_id":"","url":"https://api.github.com/users/equilobe","html_url":"https://github.com/equilobe","followers_url":"https://api.github.com/users/equilobe/followers","following_url":"https://api.github.com/users/equilobe/following{/other_user}","gists_url":"https://api.github.com/users/equilobe/gists{/gist_id}","starred_url":"https://api.github.com/users/equilobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equilobe/subscriptions","organizations_url":"https://api.github.com/users/equilobe/orgs","repos_url":"https://api.github.com/users/equilobe/repos","events_url":"https://api.github.com/users/equilobe/events{/privacy}","received_events_url":"https://api.github.com/users/equilobe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/equilobe/DailyReportingTools","description":"Reporting tools for daily SVN/GitHub commits and JIRA work logs.","fork":false,"url":"https://api.github.com/repos/equilobe/DailyReportingTools","forks_url":"https://api.github.com/repos/equilobe/DailyReportingTools/forks","keys_url":"https://api.github.com/repos/equilobe/DailyReportingTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equilobe/DailyReportingTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equilobe/DailyReportingTools/teams","hooks_url":"https://api.github.com/repos/equilobe/DailyReportingTools/hooks","issue_events_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/events{/number}","events_url":"https://api.github.com/repos/equilobe/DailyReportingTools/events","assignees_url":"https://api.github.com/repos/equilobe/DailyReportingTools/assignees{/user}","branches_url":"https://api.github.com/repos/equilobe/DailyReportingTools/branches{/branch}","tags_url":"https://api.github.com/repos/equilobe/DailyReportingTools/tags","blobs_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equilobe/DailyReportingTools/statuses/{sha}","languages_url":"https://api.github.com/repos/equilobe/DailyReportingTools/languages","stargazers_url":"https://api.github.com/repos/equilobe/DailyReportingTools/stargazers","contributors_url":"https://api.github.com/repos/equilobe/DailyReportingTools/contributors","subscribers_url":"https://api.github.com/repos/equilobe/DailyReportingTools/subscribers","subscription_url":"https://api.github.com/repos/equilobe/DailyReportingTools/subscription","commits_url":"https://api.github.com/repos/equilobe/DailyReportingTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/equilobe/DailyReportingTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/equilobe/DailyReportingTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/comments/{number}","contents_url":"https://api.github.com/repos/equilobe/DailyReportingTools/contents/{+path}","compare_url":"https://api.github.com/repos/equilobe/DailyReportingTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equilobe/DailyReportingTools/merges","archive_url":"https://api.github.com/repos/equilobe/DailyReportingTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equilobe/DailyReportingTools/downloads","issues_url":"https://api.github.com/repos/equilobe/DailyReportingTools/issues{/number}","pulls_url":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls{/number}","milestones_url":"https://api.github.com/repos/equilobe/DailyReportingTools/milestones{/number}","notifications_url":"https://api.github.com/repos/equilobe/DailyReportingTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equilobe/DailyReportingTools/labels{/name}","releases_url":"https://api.github.com/repos/equilobe/DailyReportingTools/releases{/id}","created_at":"2014-08-28T07:22:37Z","updated_at":"2015-02-02T12:01:52Z","pushed_at":"2015-02-02T12:01:51Z","git_url":"git://github.com/equilobe/DailyReportingTools.git","ssh_url":"git@github.com:equilobe/DailyReportingTools.git","clone_url":"https://github.com/equilobe/DailyReportingTools.git","svn_url":"https://github.com/equilobe/DailyReportingTools","homepage":null,"size":6800,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6"},"html":{"href":"https://github.com/equilobe/DailyReportingTools/pull/6"},"issue":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/6"},"comments":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/equilobe/DailyReportingTools/statuses/bcb081c68672b039522d6fdfc5042e5932eb3d1f"}}}}