Our REST services return hierarchical data. Some clients, however, prefer flat data, so we offer the option to flatten the response using this convention:
In both cases, however, the parameter displays with an input field in Playground; this is normal, but not normal for parameters that don't take values, creating request URL like this:
/customer{customer_id}/?$flatten=
We suggest support for new parameter type:
paramType = RestApiParamType.QUERY_NOVAL
For such parameters, instead of showing input field in Playground, show checkbox instead, when selected, the parameter (without a value) is added to the query string:
Our REST services return hierarchical data. Some clients, however, prefer flat data, so we offer the option to flatten the response using this convention:
We documented
$flatten
like this..In both cases, however, the parameter displays with an input field in Playground; this is normal, but not normal for parameters that don't take values, creating request URL like this:
We suggest support for new parameter type:
For such parameters, instead of showing input field in Playground, show checkbox instead, when selected, the parameter (without a value) is added to the query string: