{"action":"created","comment":{"url":"https://api.github.com/repos/api-platform/docs/pulls/comments/134674049","pull_request_review_id":57991171,"id":134674049,"diff_hunk":"@@ -0,0 +1,137 @@\n+# The Serialization Process\n+\n+## Overall process\n+\n+API Platform embraces and extends the Symfony Serializer Component to transform PHP entities in hypermedia API responses.\n+\n+The main serialization process has two stages:\n+\n+![Serializer workflow](images/SerializerWorkflow.png)\n+\n+> As you can see in the picture above, an array is used as a man in the middle. This way, Encoders will only deal with turning specific formats into arrays and vice versa. The same way, Normalizers will deal with turning specific objects into arrays and vice versa.\n+\n+[The Symfony documentation](https://symfony.com/doc/current/components/serializer.html)\n+\n+Unlike Symfony itself, API Platform leverages custom normalizers, its router and the [data provider](data-providers.md) system to do an advanced tranformation. Metadata are added to the generated document including links, type information, pagination data or available filters.\n+\n+The API Platform Serializer is very extensible, you can register custom normalizers and encoders to support other formats. You can also decorate existing normalizers to customize their behaviors.\n+\n+## Available serializers\n+\n+### Normalizers\n+\n+* [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD) serializer\n+`api_platform.jsonld.normalizer.item`\n+\n+* [HAL](https://en.wikipedia.org/wiki/Hypertext_Application_Language) serializer\n+`api_platform.serializer.normalizer.item`\n+\n+* JSON, XML, CSV serializer (using the Symfony serializer)\n+`api_platform.hal.normalizer.item`\n+\n+###Encoders\n+\n+* [HAL](https://en.wikipedia.org/wiki/Hypertext_Application_Language) encoder\n+`api_platform.hal.encoder`\n+\n+* [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD) encoder","path":"core/serialization.md","position":37,"original_position":37,"commit_id":"809f9389265df8fef6cda6ae132d7200061d0817","original_commit_id":"809f9389265df8fef6cda6ae132d7200061d0817","user":{"login":"Tim59","id":5579551,"avatar_url":"https://avatars3.githubusercontent.com/u/5579551?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim59","html_url":"https://github.com/Tim59","followers_url":"https://api.github.com/users/Tim59/followers","following_url":"https://api.github.com/users/Tim59/following{/other_user}","gists_url":"https://api.github.com/users/Tim59/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim59/subscriptions","organizations_url":"https://api.github.com/users/Tim59/orgs","repos_url":"https://api.github.com/users/Tim59/repos","events_url":"https://api.github.com/users/Tim59/events{/privacy}","received_events_url":"https://api.github.com/users/Tim59/received_events","type":"User","site_admin":false},"body":"Ok, do you think i need to remove the section \"encoders\" ? ","created_at":"2017-08-23T07:18:17Z","updated_at":"2017-08-23T07:18:17Z","html_url":"https://github.com/api-platform/docs/pull/238#discussion_r134674049","pull_request_url":"https://api.github.com/repos/api-platform/docs/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/comments/134674049"},"html":{"href":"https://github.com/api-platform/docs/pull/238#discussion_r134674049"},"pull_request":{"href":"https://api.github.com/repos/api-platform/docs/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/api-platform/docs/pulls/238","id":137001883,"html_url":"https://github.com/api-platform/docs/pull/238","diff_url":"https://github.com/api-platform/docs/pull/238.diff","patch_url":"https://github.com/api-platform/docs/pull/238.patch","issue_url":"https://api.github.com/repos/api-platform/docs/issues/238","number":238,"state":"open","locked":false,"title":"Add serialization documentation & override normalizer","user":{"login":"Tim59","id":5579551,"avatar_url":"https://avatars3.githubusercontent.com/u/5579551?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim59","html_url":"https://github.com/Tim59","followers_url":"https://api.github.com/users/Tim59/followers","following_url":"https://api.github.com/users/Tim59/following{/other_user}","gists_url":"https://api.github.com/users/Tim59/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim59/subscriptions","organizations_url":"https://api.github.com/users/Tim59/orgs","repos_url":"https://api.github.com/users/Tim59/repos","events_url":"https://api.github.com/users/Tim59/events{/privacy}","received_events_url":"https://api.github.com/users/Tim59/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-22T14:54:38Z","updated_at":"2017-08-23T07:18:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f54393b20b304e697b73fc26b6313859f70715af","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/api-platform/docs/pulls/238/commits","review_comments_url":"https://api.github.com/repos/api-platform/docs/pulls/238/comments","review_comment_url":"https://api.github.com/repos/api-platform/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/api-platform/docs/issues/238/comments","statuses_url":"https://api.github.com/repos/api-platform/docs/statuses/809f9389265df8fef6cda6ae132d7200061d0817","head":{"label":"Tim59:master","ref":"master","sha":"809f9389265df8fef6cda6ae132d7200061d0817","user":{"login":"Tim59","id":5579551,"avatar_url":"https://avatars3.githubusercontent.com/u/5579551?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim59","html_url":"https://github.com/Tim59","followers_url":"https://api.github.com/users/Tim59/followers","following_url":"https://api.github.com/users/Tim59/following{/other_user}","gists_url":"https://api.github.com/users/Tim59/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim59/subscriptions","organizations_url":"https://api.github.com/users/Tim59/orgs","repos_url":"https://api.github.com/users/Tim59/repos","events_url":"https://api.github.com/users/Tim59/events{/privacy}","received_events_url":"https://api.github.com/users/Tim59/received_events","type":"User","site_admin":false},"repo":{"id":86584277,"name":"api-platform-docs","full_name":"Tim59/api-platform-docs","owner":{"login":"Tim59","id":5579551,"avatar_url":"https://avatars3.githubusercontent.com/u/5579551?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim59","html_url":"https://github.com/Tim59","followers_url":"https://api.github.com/users/Tim59/followers","following_url":"https://api.github.com/users/Tim59/following{/other_user}","gists_url":"https://api.github.com/users/Tim59/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim59/subscriptions","organizations_url":"https://api.github.com/users/Tim59/orgs","repos_url":"https://api.github.com/users/Tim59/repos","events_url":"https://api.github.com/users/Tim59/events{/privacy}","received_events_url":"https://api.github.com/users/Tim59/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tim59/api-platform-docs","description":"API Platform documentation","fork":true,"url":"https://api.github.com/repos/Tim59/api-platform-docs","forks_url":"https://api.github.com/repos/Tim59/api-platform-docs/forks","keys_url":"https://api.github.com/repos/Tim59/api-platform-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tim59/api-platform-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tim59/api-platform-docs/teams","hooks_url":"https://api.github.com/repos/Tim59/api-platform-docs/hooks","issue_events_url":"https://api.github.com/repos/Tim59/api-platform-docs/issues/events{/number}","events_url":"https://api.github.com/repos/Tim59/api-platform-docs/events","assignees_url":"https://api.github.com/repos/Tim59/api-platform-docs/assignees{/user}","branches_url":"https://api.github.com/repos/Tim59/api-platform-docs/branches{/branch}","tags_url":"https://api.github.com/repos/Tim59/api-platform-docs/tags","blobs_url":"https://api.github.com/repos/Tim59/api-platform-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tim59/api-platform-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tim59/api-platform-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tim59/api-platform-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tim59/api-platform-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Tim59/api-platform-docs/languages","stargazers_url":"https://api.github.com/repos/Tim59/api-platform-docs/stargazers","contributors_url":"https://api.github.com/repos/Tim59/api-platform-docs/contributors","subscribers_url":"https://api.github.com/repos/Tim59/api-platform-docs/subscribers","subscription_url":"https://api.github.com/repos/Tim59/api-platform-docs/subscription","commits_url":"https://api.github.com/repos/Tim59/api-platform-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tim59/api-platform-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tim59/api-platform-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tim59/api-platform-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tim59/api-platform-docs/contents/{+path}","compare_url":"https://api.github.com/repos/Tim59/api-platform-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tim59/api-platform-docs/merges","archive_url":"https://api.github.com/repos/Tim59/api-platform-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tim59/api-platform-docs/downloads","issues_url":"https://api.github.com/repos/Tim59/api-platform-docs/issues{/number}","pulls_url":"https://api.github.com/repos/Tim59/api-platform-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Tim59/api-platform-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Tim59/api-platform-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tim59/api-platform-docs/labels{/name}","releases_url":"https://api.github.com/repos/Tim59/api-platform-docs/releases{/id}","deployments_url":"https://api.github.com/repos/Tim59/api-platform-docs/deployments","created_at":"2017-03-29T13:17:36Z","updated_at":"2017-03-29T15:07:12Z","pushed_at":"2017-08-22T17:33:59Z","git_url":"git://github.com/Tim59/api-platform-docs.git","ssh_url":"git@github.com:Tim59/api-platform-docs.git","clone_url":"https://github.com/Tim59/api-platform-docs.git","svn_url":"https://github.com/Tim59/api-platform-docs","homepage":"https://api-platform.com/docs/","size":1371,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":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":"api-platform:master","ref":"master","sha":"0d0dfac8bb1bd8877382fb77dff6b45d33dd023c","user":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":38251565,"name":"docs","full_name":"api-platform/docs","owner":{"login":"api-platform","id":13420081,"avatar_url":"https://avatars3.githubusercontent.com/u/13420081?v=4","gravatar_id":"","url":"https://api.github.com/users/api-platform","html_url":"https://github.com/api-platform","followers_url":"https://api.github.com/users/api-platform/followers","following_url":"https://api.github.com/users/api-platform/following{/other_user}","gists_url":"https://api.github.com/users/api-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/api-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/api-platform/subscriptions","organizations_url":"https://api.github.com/users/api-platform/orgs","repos_url":"https://api.github.com/users/api-platform/repos","events_url":"https://api.github.com/users/api-platform/events{/privacy}","received_events_url":"https://api.github.com/users/api-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/api-platform/docs","description":"API Platform documentation","fork":false,"url":"https://api.github.com/repos/api-platform/docs","forks_url":"https://api.github.com/repos/api-platform/docs/forks","keys_url":"https://api.github.com/repos/api-platform/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/api-platform/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/api-platform/docs/teams","hooks_url":"https://api.github.com/repos/api-platform/docs/hooks","issue_events_url":"https://api.github.com/repos/api-platform/docs/issues/events{/number}","events_url":"https://api.github.com/repos/api-platform/docs/events","assignees_url":"https://api.github.com/repos/api-platform/docs/assignees{/user}","branches_url":"https://api.github.com/repos/api-platform/docs/branches{/branch}","tags_url":"https://api.github.com/repos/api-platform/docs/tags","blobs_url":"https://api.github.com/repos/api-platform/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/api-platform/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/api-platform/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/api-platform/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/api-platform/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/api-platform/docs/languages","stargazers_url":"https://api.github.com/repos/api-platform/docs/stargazers","contributors_url":"https://api.github.com/repos/api-platform/docs/contributors","subscribers_url":"https://api.github.com/repos/api-platform/docs/subscribers","subscription_url":"https://api.github.com/repos/api-platform/docs/subscription","commits_url":"https://api.github.com/repos/api-platform/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/api-platform/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/api-platform/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/api-platform/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/api-platform/docs/contents/{+path}","compare_url":"https://api.github.com/repos/api-platform/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/api-platform/docs/merges","archive_url":"https://api.github.com/repos/api-platform/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/api-platform/docs/downloads","issues_url":"https://api.github.com/repos/api-platform/docs/issues{/number}","pulls_url":"https://api.github.com/repos/api-platform/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/api-platform/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/api-platform/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/api-platform/docs/labels{/name}","releases_url":"https://api.github.com/repos/api-platform/docs/releases{/id}","deployments_url":"https://api.github.com/repos/api-platform/docs/deployments","created_at":"2015-06-29T14:19:34Z","updated_at":"2017-06-14T19:14:28Z","pushed_at":"2017-08-22T17:34:01Z","git_url":"git://github.com/api-platform/docs.git","ssh_url":"git@github.com:api-platform/docs.git","clone_url":"https://github.com/api-platform/docs.git","svn_url":"https://github.com/api-platform/docs","homepage":"https://api-platform.com/docs/","size":1334,"stargazers_count":34,"watchers_count":34,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":116,"mirror_url":null,"open_issues_count":20,"forks":116,"open_issues":20,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/api-platform/docs/pulls/238"},"html":{"href":"https://github.com/api-platform/docs/pull/238"},"issue":{"href":"https://api.github.com/repos/api-platform/docs/issues/238"},"comments":{"href":"https://api.github.com/repos/api-platform/docs/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/api-platform/docs/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/api-platform/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/api-platform/docs/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/api-platform/docs/statuses/809f9389265df8fef6cda6ae132d7200061d0817"}}}}
{"actor":{"display_login":"Tim59"}}