4 ms·
Why not a standard syntax like this: ``` /api/payments?fields=customerNumber&fields=checkNumber ``` You don't need [] to look for multiples.
by dalore 9y ago
Why not a standard syntax like this:
```
/api/payments?fields=customerNumber&fields=checkNumber
```
You don't need [] to look for multiples.
- oneeyedpigeon 9y agoAs another commenter mentioned, there isn't really a standard here. I thought "field[]" was a standard, of course — that's the way PHP handles parameter arrays. In contrast, reusing the parameter name without the trailing "[]" does not work (only the last value is provided, as a scalar). I guess I got my answer :)