{"action":"created","comment":{"url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments/202570536","pull_request_review_id":137296206,"id":202570536,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjU3MDUzNg==","diff_hunk":"@@ -80,5 +83,48 @@ public T Get<T>(string route, ServerConfiguration webApi = null)\n \n             throw new HttpRequestException(response.Headers.ToString());\n         }\n+\n+        public T Post<T>(string route, T data, ServerConfiguration webApi = null)\n+        {\n+            if (MockValues.ContainsKey(route))\n+            {\n+                return (T)MockValues[route];\n+            }\n+\n+            var client = new HttpClient();\n+            HttpResponseMessage response;\n+            client.BaseAddress = webApi == null ? BaseAddress : new Uri(webApi.ToString());\n+            client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(\"Bearer\", Token);\n+            // When you Serialize the object, you get the correct data, but when you send it, the packetcontroller receives a null Object\n+            response = client.PostAsync(route, new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, \"application/json\")).Result;","path":"src/NosCore.Core/Networking/WebApiAccess.cs","position":29,"original_position":29,"commit_id":"c9a2a23c92ca1c2a02b8ac41da211958f3cd0722","original_commit_id":"c9a2a23c92ca1c2a02b8ac41da211958f3cd0722","user":{"login":"erwan-joly","id":35202750,"node_id":"MDQ6VXNlcjM1MjAyNzUw","avatar_url":"https://avatars3.githubusercontent.com/u/35202750?v=4","gravatar_id":"","url":"https://api.github.com/users/erwan-joly","html_url":"https://github.com/erwan-joly","followers_url":"https://api.github.com/users/erwan-joly/followers","following_url":"https://api.github.com/users/erwan-joly/following{/other_user}","gists_url":"https://api.github.com/users/erwan-joly/gists{/gist_id}","starred_url":"https://api.github.com/users/erwan-joly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwan-joly/subscriptions","organizations_url":"https://api.github.com/users/erwan-joly/orgs","repos_url":"https://api.github.com/users/erwan-joly/repos","events_url":"https://api.github.com/users/erwan-joly/events{/privacy}","received_events_url":"https://api.github.com/users/erwan-joly/received_events","type":"User","site_admin":false},"body":"new FormUrlEncodedContent(JsonConvert.SerializeObject(data))","created_at":"2018-07-16T04:08:10Z","updated_at":"2018-07-16T04:08:10Z","html_url":"https://github.com/NosCoreIO/NosCore/pull/130#discussion_r202570536","pull_request_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments/202570536"},"html":{"href":"https://github.com/NosCoreIO/NosCore/pull/130#discussion_r202570536"},"pull_request":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130","id":201495831,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNDk1ODMx","html_url":"https://github.com/NosCoreIO/NosCore/pull/130","diff_url":"https://github.com/NosCoreIO/NosCore/pull/130.diff","patch_url":"https://github.com/NosCoreIO/NosCore/pull/130.patch","issue_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/130","number":130,"state":"open","locked":false,"title":"WIP: Chat system","user":{"login":"Elendan","id":21977964,"node_id":"MDQ6VXNlcjIxOTc3OTY0","avatar_url":"https://avatars3.githubusercontent.com/u/21977964?v=4","gravatar_id":"","url":"https://api.github.com/users/Elendan","html_url":"https://github.com/Elendan","followers_url":"https://api.github.com/users/Elendan/followers","following_url":"https://api.github.com/users/Elendan/following{/other_user}","gists_url":"https://api.github.com/users/Elendan/gists{/gist_id}","starred_url":"https://api.github.com/users/Elendan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elendan/subscriptions","organizations_url":"https://api.github.com/users/Elendan/orgs","repos_url":"https://api.github.com/users/Elendan/repos","events_url":"https://api.github.com/users/Elendan/events{/privacy}","received_events_url":"https://api.github.com/users/Elendan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-15T12:30:48Z","updated_at":"2018-07-16T04:08:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6637bfc20c4baf42288c762df7ac1913fe976eee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130/commits","review_comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130/comments","review_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/130/comments","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/c9a2a23c92ca1c2a02b8ac41da211958f3cd0722","head":{"label":"NosCoreIO:feature/chat-system","ref":"feature/chat-system","sha":"c9a2a23c92ca1c2a02b8ac41da211958f3cd0722","user":{"login":"NosCoreIO","id":37359054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzU5MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"repo":{"id":118317381,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgzMTczODE=","name":"NosCore","full_name":"NosCoreIO/NosCore","owner":{"login":"NosCoreIO","id":37359054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzU5MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NosCoreIO/NosCore","description":"NosCore is an emulator in c# (dotnet core) using DotNetty / Entity Framework / WebAPI / Autofac","fork":false,"url":"https://api.github.com/repos/NosCoreIO/NosCore","forks_url":"https://api.github.com/repos/NosCoreIO/NosCore/forks","keys_url":"https://api.github.com/repos/NosCoreIO/NosCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NosCoreIO/NosCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NosCoreIO/NosCore/teams","hooks_url":"https://api.github.com/repos/NosCoreIO/NosCore/hooks","issue_events_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/events{/number}","events_url":"https://api.github.com/repos/NosCoreIO/NosCore/events","assignees_url":"https://api.github.com/repos/NosCoreIO/NosCore/assignees{/user}","branches_url":"https://api.github.com/repos/NosCoreIO/NosCore/branches{/branch}","tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/tags","blobs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/{sha}","languages_url":"https://api.github.com/repos/NosCoreIO/NosCore/languages","stargazers_url":"https://api.github.com/repos/NosCoreIO/NosCore/stargazers","contributors_url":"https://api.github.com/repos/NosCoreIO/NosCore/contributors","subscribers_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscribers","subscription_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscription","commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/NosCoreIO/NosCore/contents/{+path}","compare_url":"https://api.github.com/repos/NosCoreIO/NosCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NosCoreIO/NosCore/merges","archive_url":"https://api.github.com/repos/NosCoreIO/NosCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NosCoreIO/NosCore/downloads","issues_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues{/number}","pulls_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls{/number}","milestones_url":"https://api.github.com/repos/NosCoreIO/NosCore/milestones{/number}","notifications_url":"https://api.github.com/repos/NosCoreIO/NosCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NosCoreIO/NosCore/labels{/name}","releases_url":"https://api.github.com/repos/NosCoreIO/NosCore/releases{/id}","deployments_url":"https://api.github.com/repos/NosCoreIO/NosCore/deployments","created_at":"2018-01-21T08:28:57Z","updated_at":"2018-07-15T12:27:37Z","pushed_at":"2018-07-16T02:39:36Z","git_url":"git://github.com/NosCoreIO/NosCore.git","ssh_url":"git@github.com:NosCoreIO/NosCore.git","clone_url":"https://github.com/NosCoreIO/NosCore.git","svn_url":"https://github.com/NosCoreIO/NosCore","homepage":"","size":892,"stargazers_count":20,"watchers_count":20,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":13,"open_issues":19,"watchers":20,"default_branch":"master"}},"base":{"label":"NosCoreIO:master","ref":"master","sha":"ffe633b2f2ce01aa62f93f2037eb4957b966d373","user":{"login":"NosCoreIO","id":37359054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzU5MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"repo":{"id":118317381,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgzMTczODE=","name":"NosCore","full_name":"NosCoreIO/NosCore","owner":{"login":"NosCoreIO","id":37359054,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MzU5MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/37359054?v=4","gravatar_id":"","url":"https://api.github.com/users/NosCoreIO","html_url":"https://github.com/NosCoreIO","followers_url":"https://api.github.com/users/NosCoreIO/followers","following_url":"https://api.github.com/users/NosCoreIO/following{/other_user}","gists_url":"https://api.github.com/users/NosCoreIO/gists{/gist_id}","starred_url":"https://api.github.com/users/NosCoreIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NosCoreIO/subscriptions","organizations_url":"https://api.github.com/users/NosCoreIO/orgs","repos_url":"https://api.github.com/users/NosCoreIO/repos","events_url":"https://api.github.com/users/NosCoreIO/events{/privacy}","received_events_url":"https://api.github.com/users/NosCoreIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NosCoreIO/NosCore","description":"NosCore is an emulator in c# (dotnet core) using DotNetty / Entity Framework / WebAPI / Autofac","fork":false,"url":"https://api.github.com/repos/NosCoreIO/NosCore","forks_url":"https://api.github.com/repos/NosCoreIO/NosCore/forks","keys_url":"https://api.github.com/repos/NosCoreIO/NosCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NosCoreIO/NosCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NosCoreIO/NosCore/teams","hooks_url":"https://api.github.com/repos/NosCoreIO/NosCore/hooks","issue_events_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/events{/number}","events_url":"https://api.github.com/repos/NosCoreIO/NosCore/events","assignees_url":"https://api.github.com/repos/NosCoreIO/NosCore/assignees{/user}","branches_url":"https://api.github.com/repos/NosCoreIO/NosCore/branches{/branch}","tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/tags","blobs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/{sha}","languages_url":"https://api.github.com/repos/NosCoreIO/NosCore/languages","stargazers_url":"https://api.github.com/repos/NosCoreIO/NosCore/stargazers","contributors_url":"https://api.github.com/repos/NosCoreIO/NosCore/contributors","subscribers_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscribers","subscription_url":"https://api.github.com/repos/NosCoreIO/NosCore/subscription","commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/NosCoreIO/NosCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/NosCoreIO/NosCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/NosCoreIO/NosCore/contents/{+path}","compare_url":"https://api.github.com/repos/NosCoreIO/NosCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NosCoreIO/NosCore/merges","archive_url":"https://api.github.com/repos/NosCoreIO/NosCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NosCoreIO/NosCore/downloads","issues_url":"https://api.github.com/repos/NosCoreIO/NosCore/issues{/number}","pulls_url":"https://api.github.com/repos/NosCoreIO/NosCore/pulls{/number}","milestones_url":"https://api.github.com/repos/NosCoreIO/NosCore/milestones{/number}","notifications_url":"https://api.github.com/repos/NosCoreIO/NosCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NosCoreIO/NosCore/labels{/name}","releases_url":"https://api.github.com/repos/NosCoreIO/NosCore/releases{/id}","deployments_url":"https://api.github.com/repos/NosCoreIO/NosCore/deployments","created_at":"2018-01-21T08:28:57Z","updated_at":"2018-07-15T12:27:37Z","pushed_at":"2018-07-16T02:39:36Z","git_url":"git://github.com/NosCoreIO/NosCore.git","ssh_url":"git@github.com:NosCoreIO/NosCore.git","clone_url":"https://github.com/NosCoreIO/NosCore.git","svn_url":"https://github.com/NosCoreIO/NosCore","homepage":"","size":892,"stargazers_count":20,"watchers_count":20,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":13,"open_issues":19,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130"},"html":{"href":"https://github.com/NosCoreIO/NosCore/pull/130"},"issue":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/issues/130"},"comments":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/NosCoreIO/NosCore/statuses/c9a2a23c92ca1c2a02b8ac41da211958f3cd0722"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"erwan-joly"}}