What is the correct way to send array params in Wordpress API request?

Viewed 27

To send _fields param to a wordpress get request should I use

?_fields=field1,field2,field3

or

?_fields[]=field1&_fields[]=field2...

I've been debugging a request that is giving inconsistent responses depending on the query params, so was wondering if there is a definite approach for this that I might be missing

1 Answers

this one ?_fields=field1,field2,field3

Related