I am considering using the collection+json media type in a project. However, after reading the docs I can't figure out what's the deal with items
that have associations.
Given this items
list, what should I do if I also need to list, i. ex., a list of gifts you'll get with the product? Should I just add another items
list within each item
?
"items": [
{
"href": "/products/1",
"data": [
{
"name": "name",
"value": "My product"
},
{
"name": "price",
"value": "100.0"
}
]
}
]