{"action":"created","comment":{"url":"https://api.github.com/repos/OData/RESTier/pulls/comments/61531911","id":61531911,"diff_hunk":"@@ -55,6 +55,7 @@ public ApiBase Api\n                 if (this.api == null)\n                 {\n                     this.api = this.Request.GetApiFactory().Invoke();\n+                    this.Request.SetApiInstance(this.api);","path":"src/Microsoft.Restier.WebApi/RestierController.cs","position":null,"original_position":4,"commit_id":"f6b1e7632177fcea143dfef9ee5b8037d7f1364d","original_commit_id":"5a8b4f5073a6c6cfb91d05a42caef82d124cdaae","user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"body":"Yeah, I move the setting into controller select and did some test with post, it is called before deserializer.","created_at":"2016-04-29T03:39:13Z","updated_at":"2016-04-29T03:39:13Z","html_url":"https://github.com/OData/RESTier/pull/386#discussion_r61531911","pull_request_url":"https://api.github.com/repos/OData/RESTier/pulls/386","_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments/61531911"},"html":{"href":"https://github.com/OData/RESTier/pull/386#discussion_r61531911"},"pull_request":{"href":"https://api.github.com/repos/OData/RESTier/pulls/386"}}},"pull_request":{"url":"https://api.github.com/repos/OData/RESTier/pulls/386","id":68318809,"html_url":"https://github.com/OData/RESTier/pull/386","diff_url":"https://github.com/OData/RESTier/pull/386.diff","patch_url":"https://github.com/OData/RESTier/pull/386.patch","issue_url":"https://api.github.com/repos/OData/RESTier/issues/386","number":386,"state":"open","locked":false,"title":"Allow serializer provider can be customized with DI services","user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"body":"### Issues\r\n*This pull request fixes issue #301.*  \r\n\r\n### Description\r\nMake serializer and deserializer provider as DI service, and only works for RESTier controller.\r\nIn case of error or user defined controller, default provider will be used.\r\n\r\n### Checklist (Uncheck if it is not completed)\r\n- [ x ] Test cases added\r\n- [ x ] Build and test with one-click build and test script passed\r\n\r\n### Additional work necessary\r\nDocument is needed.\r\n\r\n","created_at":"2016-04-29T02:44:38Z","updated_at":"2016-04-29T03:39:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6abed89d13bbc158227aa1d7486651f151782544","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OData/RESTier/pulls/386/commits","review_comments_url":"https://api.github.com/repos/OData/RESTier/pulls/386/comments","review_comment_url":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OData/RESTier/issues/386/comments","statuses_url":"https://api.github.com/repos/OData/RESTier/statuses/f6b1e7632177fcea143dfef9ee5b8037d7f1364d","head":{"label":"chinadragon0515:serializer","ref":"serializer","sha":"f6b1e7632177fcea143dfef9ee5b8037d7f1364d","user":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"repo":{"id":50553804,"name":"RESTier","full_name":"chinadragon0515/RESTier","owner":{"login":"chinadragon0515","id":12759740,"avatar_url":"https://avatars.githubusercontent.com/u/12759740?v=3","gravatar_id":"","url":"https://api.github.com/users/chinadragon0515","html_url":"https://github.com/chinadragon0515","followers_url":"https://api.github.com/users/chinadragon0515/followers","following_url":"https://api.github.com/users/chinadragon0515/following{/other_user}","gists_url":"https://api.github.com/users/chinadragon0515/gists{/gist_id}","starred_url":"https://api.github.com/users/chinadragon0515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinadragon0515/subscriptions","organizations_url":"https://api.github.com/users/chinadragon0515/orgs","repos_url":"https://api.github.com/users/chinadragon0515/repos","events_url":"https://api.github.com/users/chinadragon0515/events{/privacy}","received_events_url":"https://api.github.com/users/chinadragon0515/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chinadragon0515/RESTier","description":"A turn-key library for building RESTful services","fork":true,"url":"https://api.github.com/repos/chinadragon0515/RESTier","forks_url":"https://api.github.com/repos/chinadragon0515/RESTier/forks","keys_url":"https://api.github.com/repos/chinadragon0515/RESTier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chinadragon0515/RESTier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chinadragon0515/RESTier/teams","hooks_url":"https://api.github.com/repos/chinadragon0515/RESTier/hooks","issue_events_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues/events{/number}","events_url":"https://api.github.com/repos/chinadragon0515/RESTier/events","assignees_url":"https://api.github.com/repos/chinadragon0515/RESTier/assignees{/user}","branches_url":"https://api.github.com/repos/chinadragon0515/RESTier/branches{/branch}","tags_url":"https://api.github.com/repos/chinadragon0515/RESTier/tags","blobs_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/refs{/sha}","trees_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chinadragon0515/RESTier/statuses/{sha}","languages_url":"https://api.github.com/repos/chinadragon0515/RESTier/languages","stargazers_url":"https://api.github.com/repos/chinadragon0515/RESTier/stargazers","contributors_url":"https://api.github.com/repos/chinadragon0515/RESTier/contributors","subscribers_url":"https://api.github.com/repos/chinadragon0515/RESTier/subscribers","subscription_url":"https://api.github.com/repos/chinadragon0515/RESTier/subscription","commits_url":"https://api.github.com/repos/chinadragon0515/RESTier/commits{/sha}","git_commits_url":"https://api.github.com/repos/chinadragon0515/RESTier/git/commits{/sha}","comments_url":"https://api.github.com/repos/chinadragon0515/RESTier/comments{/number}","issue_comment_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues/comments{/number}","contents_url":"https://api.github.com/repos/chinadragon0515/RESTier/contents/{+path}","compare_url":"https://api.github.com/repos/chinadragon0515/RESTier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chinadragon0515/RESTier/merges","archive_url":"https://api.github.com/repos/chinadragon0515/RESTier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chinadragon0515/RESTier/downloads","issues_url":"https://api.github.com/repos/chinadragon0515/RESTier/issues{/number}","pulls_url":"https://api.github.com/repos/chinadragon0515/RESTier/pulls{/number}","milestones_url":"https://api.github.com/repos/chinadragon0515/RESTier/milestones{/number}","notifications_url":"https://api.github.com/repos/chinadragon0515/RESTier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chinadragon0515/RESTier/labels{/name}","releases_url":"https://api.github.com/repos/chinadragon0515/RESTier/releases{/id}","deployments_url":"https://api.github.com/repos/chinadragon0515/RESTier/deployments","created_at":"2016-01-28T04:00:25Z","updated_at":"2016-01-28T04:00:26Z","pushed_at":"2016-04-29T03:36:38Z","git_url":"git://github.com/chinadragon0515/RESTier.git","ssh_url":"git@github.com:chinadragon0515/RESTier.git","clone_url":"https://github.com/chinadragon0515/RESTier.git","svn_url":"https://github.com/chinadragon0515/RESTier","homepage":"http://odata.github.io/RESTier","size":5657,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OData:master","ref":"master","sha":"d2ef037136b1196fd072c0ca0818160cde51adca","user":{"login":"OData","id":916520,"avatar_url":"https://avatars.githubusercontent.com/u/916520?v=3","gravatar_id":"","url":"https://api.github.com/users/OData","html_url":"https://github.com/OData","followers_url":"https://api.github.com/users/OData/followers","following_url":"https://api.github.com/users/OData/following{/other_user}","gists_url":"https://api.github.com/users/OData/gists{/gist_id}","starred_url":"https://api.github.com/users/OData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OData/subscriptions","organizations_url":"https://api.github.com/users/OData/orgs","repos_url":"https://api.github.com/users/OData/repos","events_url":"https://api.github.com/users/OData/events{/privacy}","received_events_url":"https://api.github.com/users/OData/received_events","type":"Organization","site_admin":false},"repo":{"id":24577772,"name":"RESTier","full_name":"OData/RESTier","owner":{"login":"OData","id":916520,"avatar_url":"https://avatars.githubusercontent.com/u/916520?v=3","gravatar_id":"","url":"https://api.github.com/users/OData","html_url":"https://github.com/OData","followers_url":"https://api.github.com/users/OData/followers","following_url":"https://api.github.com/users/OData/following{/other_user}","gists_url":"https://api.github.com/users/OData/gists{/gist_id}","starred_url":"https://api.github.com/users/OData/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OData/subscriptions","organizations_url":"https://api.github.com/users/OData/orgs","repos_url":"https://api.github.com/users/OData/repos","events_url":"https://api.github.com/users/OData/events{/privacy}","received_events_url":"https://api.github.com/users/OData/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OData/RESTier","description":"A turn-key library for building RESTful services","fork":false,"url":"https://api.github.com/repos/OData/RESTier","forks_url":"https://api.github.com/repos/OData/RESTier/forks","keys_url":"https://api.github.com/repos/OData/RESTier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OData/RESTier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OData/RESTier/teams","hooks_url":"https://api.github.com/repos/OData/RESTier/hooks","issue_events_url":"https://api.github.com/repos/OData/RESTier/issues/events{/number}","events_url":"https://api.github.com/repos/OData/RESTier/events","assignees_url":"https://api.github.com/repos/OData/RESTier/assignees{/user}","branches_url":"https://api.github.com/repos/OData/RESTier/branches{/branch}","tags_url":"https://api.github.com/repos/OData/RESTier/tags","blobs_url":"https://api.github.com/repos/OData/RESTier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OData/RESTier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OData/RESTier/git/refs{/sha}","trees_url":"https://api.github.com/repos/OData/RESTier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OData/RESTier/statuses/{sha}","languages_url":"https://api.github.com/repos/OData/RESTier/languages","stargazers_url":"https://api.github.com/repos/OData/RESTier/stargazers","contributors_url":"https://api.github.com/repos/OData/RESTier/contributors","subscribers_url":"https://api.github.com/repos/OData/RESTier/subscribers","subscription_url":"https://api.github.com/repos/OData/RESTier/subscription","commits_url":"https://api.github.com/repos/OData/RESTier/commits{/sha}","git_commits_url":"https://api.github.com/repos/OData/RESTier/git/commits{/sha}","comments_url":"https://api.github.com/repos/OData/RESTier/comments{/number}","issue_comment_url":"https://api.github.com/repos/OData/RESTier/issues/comments{/number}","contents_url":"https://api.github.com/repos/OData/RESTier/contents/{+path}","compare_url":"https://api.github.com/repos/OData/RESTier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OData/RESTier/merges","archive_url":"https://api.github.com/repos/OData/RESTier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OData/RESTier/downloads","issues_url":"https://api.github.com/repos/OData/RESTier/issues{/number}","pulls_url":"https://api.github.com/repos/OData/RESTier/pulls{/number}","milestones_url":"https://api.github.com/repos/OData/RESTier/milestones{/number}","notifications_url":"https://api.github.com/repos/OData/RESTier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OData/RESTier/labels{/name}","releases_url":"https://api.github.com/repos/OData/RESTier/releases{/id}","deployments_url":"https://api.github.com/repos/OData/RESTier/deployments","created_at":"2014-09-29T02:54:06Z","updated_at":"2016-04-28T22:16:32Z","pushed_at":"2016-04-29T03:36:38Z","git_url":"git://github.com/OData/RESTier.git","ssh_url":"git@github.com:OData/RESTier.git","clone_url":"https://github.com/OData/RESTier.git","svn_url":"https://github.com/OData/RESTier","homepage":"http://odata.github.io/RESTier","size":6010,"stargazers_count":92,"watchers_count":92,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":36,"mirror_url":null,"open_issues_count":107,"forks":36,"open_issues":107,"watchers":92,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OData/RESTier/pulls/386"},"html":{"href":"https://github.com/OData/RESTier/pull/386"},"issue":{"href":"https://api.github.com/repos/OData/RESTier/issues/386"},"comments":{"href":"https://api.github.com/repos/OData/RESTier/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/OData/RESTier/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/OData/RESTier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OData/RESTier/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/OData/RESTier/statuses/f6b1e7632177fcea143dfef9ee5b8037d7f1364d"}}}}