We have a project to complete for a client that involves setting up a restful web service backend for a set of mobile apps for Android and iOS. We have elected to use Drupal as our restful server and utilize the JSON service available through Services 3 along with the spyc library.
We have been able to locate precious little documentation related to the JSON data structures that need to be included with the content of a POST in order to create a node where additional fields have been added, so we are attempting to create this documentation through trial and error. At this point, we are stuck on the needed JSON data structure for a Taxonomy Term Reference field that stores unlimited multiple term references using either a select/checkbox or an autocomplete field on the Drupal UI web side of things.
If we understand correctly the data structure that works for a field using select/checkbox is different from the data structure for an autocomplete field. However, we have been unable to successfully determine what that data structure needs to look like in either case in order to create a node with multiple values stored in a Taxonomy Term Reference field.
At this time we can successfully create a node by posting a data structure that includes the following, which creates a single value in the Taxonomy Term Reference field, even if that field accepts multiple values:
However, passing multiple values errors out with a 406. We have tried a multitude of formats, including:
All to no avail.
Any suggestions or help here would be greatly appreciated!