<?xml version="1.0" encoding="UTF-8"?>
<serializer>
    <class name="App\Entity\OAuth\Client" xml-root-name="client" exclusion-policy="ALL" xmlns:h="https://github.com/willdurand/Hateoas">
        <property name="name" groups="list,object" xml-attribute="true" expose="true" />
        <property name="preApproved" groups="admin_oauth_client_object" xml-attribute="true" expose="true" />
        <virtual-property name="redirectUris" groups="admin_oauth_client_object" method="getRedirectUris" expose="true">
            <xml-list inline="true" entry-name="redirect-uri" />
        </virtual-property>
        <h:relation rel="self">
            <h:href route="admin_oauth_client_get">
                <h:parameter name="id" value="expr(object.getId())" />
            </h:href>
            <h:exclusion groups="list,object" />
        </h:relation>
    </class>
</serializer>

<?xml version="1.0" encoding="UTF-8"?>
<serializer>
    <class name="App\Entity\OAuth\Client" xml-root-name="client" exclusion-policy="ALL" xmlns:h="https://github.com/willdurand/Hateoas">
        <property name="name" groups="list,object" xml-attribute="true" expose="true" />
        <property name="preApproved" groups="admin_oauth_client_object" xml-attribute="true" expose="true" />
        <virtual-property name="redirectUris" groups="admin_oauth_client_object" method="getRedirectUris" expose="true">
            <xml-list inline="true" entry-name="redirect-uri" />
        </virtual-property>
        <h:relation rel="self">
            <h:href route="admin_oauth_client_get">
                <h:parameter name="client" value="expr(object.getId())" />
            </h:href>
            <h:exclusion groups="list,object" />
        </h:relation>
    </class>
</serializer>

Fix generation of oauth client url in serialization of OAuth client
Fix generation of oauth client url in serialization of OAuth client
