Model.User.xml 2.2 KB

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <serializer>
  3. <class name="FOS\UserBundle\Model\User" exclusion-policy="all" xml-root-name="user">
  4. <property name="username" type="string" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  5. <property name="usernameCanonical" type="string" expose="true" since-version="1.0" groups="sonata_api_read,sonata_search"/>
  6. <property name="email" type="string" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  7. <property name="emailCanonical" type="string" expose="true" since-version="1.0" groups="sonata_api_read,sonata_search"/>
  8. <property name="enabled" type="boolean" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  9. <property name="plainPassword" type="string" expose="true" since-version="1.0" groups="sonata_api_write"/>
  10. <property name="lastLogin" type="DateTime" expose="true" since-version="1.0" groups="sonata_api_read,sonata_search"/>
  11. <property name="locked" type="boolean" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  12. <property name="expired" type="boolean" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  13. <property name="expiresAt" type="DateTime" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  14. <property name="confirmationToken" type="string" expose="true" since-version="1.0" groups="sonata_api_read,sonata_search"/>
  15. <property name="passwordRequestedAt" type="DateTime" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  16. <property name="roles" type="array" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  17. <property name="credentialsExpired" type="boolean" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  18. <property name="credentialsExpireAt" type="DateTime" expose="true" since-version="1.0" groups="sonata_api_read,sonata_api_write,sonata_search"/>
  19. </class>
  20. </serializer>