<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kevin</title>
    <description>The latest articles on DEV Community by kevin (@kevin_fr).</description>
    <link>https://dev.to/kevin_fr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F162399%2Ff7df6a2d-4911-456e-a0c1-fd43f440c88a.png</url>
      <title>DEV Community: kevin</title>
      <link>https://dev.to/kevin_fr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevin_fr"/>
    <language>en</language>
    <item>
      <title>[Solved] Symfony json rest api normalizer how use it?</title>
      <dc:creator>kevin</dc:creator>
      <pubDate>Mon, 20 Apr 2020 02:55:10 +0000</pubDate>
      <link>https://dev.to/kevin_fr/symfony-json-rest-api-normalizer-how-use-it-5hm0</link>
      <guid>https://dev.to/kevin_fr/symfony-json-rest-api-normalizer-how-use-it-5hm0</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have in my rest api complex json, so each time i have to format array for serialization output for avoid useless information. &lt;/p&gt;

&lt;p&gt;i use groups properties of symfony serializer but i have many endpoints.&lt;/p&gt;

&lt;p&gt;I saw normalizer is good idea to use for this case? if yes i have to use one normalizer by contoller?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Edit:&lt;br&gt;
finally for best solution is to combine normalizer with groups, and in you normalizer with context parameter you adapt you response according groups to serialize&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
