NationalMuseumAustralia / Collection-API

The public web API of the National Museum of Australia
10 stars 0 forks source link

Linked art JSON - collection included_in to be an array? #16

Closed f27wood closed 6 years ago

f27wood commented 6 years ago

From tester:

For linked-art JSON I’m looking for the collection title in included_in, however in this instance this appears to be a single object (not an array of objects). I would assume an object may appear in multiple collections, in which case this should be an array?

As per issue #13 : If there are multiple structure responses (array for multi, single object for single) it makes a developers life harder as there isn’t one single approach to retrieving data

f27wood commented 6 years ago

Objects are only ever included in one collection so in this case, there will only ever be a single collection name returned.

So I think this can remain as is?

f27wood commented 6 years ago

Closing as can leave as is