How do use Field Selection with REST?

As far as I know/do, I use query boolean parameters to enforce field selection in my REST calls, for example: /orders/42?invoice=true&orderlines=false&customer=true But the documentation I’ve read read up till now specify a comma-separated list of fields. This would mean a line such as: /orders/42?fields=invoice,customer   Assuming that implementation is correct, I’d be converting that string concatenation to separated booleans by using the contains() function (because I don’t know a different method to constrain the additional object mapping). However, this seems so wrong and unnecessary.   So in short: How does one use field selection in a REST request to specify which fields have to be send, instead of the default values?
0 answers