The prettyprint query parameter causes the XML or JSON returned in response to a GET request to be formatted for readability. For example, with the prettyprint parameter, the returned XML for a list of tenants looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<tenants>
<name>Default</name>
<name>Finance</name>
<name>HR</name>
<name>Sales</name>
<name>Marketing</name>
</tenants>
Without the prettyprint parameter, the returned XML looks like this:
<?xml version="1.0" encoding="UTF-8"?><tenants><name>Default
</name><name>Finance</name><name>HR</name><name>Sales
</name><name>Marketing</name></tenants>
The prettyprint parameter increases the time it takes to process a request. Therefore, you should use it only for testing purposes and not in production applications.
© 2017 Hitachi Data Systems Corporation. All rights reserved.