So if we have the following line item...
line_item
ad_distribution{:price_per_unit = 20}
buy_item{:id = 1}
buy_item{:id = 2,
:price_per_unit = 40}
I think the first case is simple. Seems we should return....
GET /ad_details/1.json
{
"buy_item": {
"price_per_unit": 20,
"ad_distribution": {
"price_per_unit": 20
}
}
}
But for
GET /ad_details/2.json
should we return this?
{
"buy_item": {
"price_per_unit": 40,
"ad_distribution": {
"price_per_unit": 40
}
}
}
or this
{
"buy_item": {
"price_per_unit": 40,
"ad_distribution": {
"price_per_unit": 20
}
}
}