4. Interceptors/Features

beautifier

Beautifies request and response bodies. Supported are the Formats: JSON, XML

Can be used in:

serviceProxy, api, for, choose, stompProxy, if, registration, wsStompReassembler, internal, interceptor, bean, transport and soapProxy

Syntax

<api port="2000">
    <template contentType="application/xml">
        <foo><bar>baz</bar></foo>
    </template>

    <beautifier/>

    <return statusCode="200"/>
</api>

Sample

<foo>
    <bar>baz</bar>
</foo>