0
我正在評論一個簡單的XML API,用於通過http使用,並且想知道是否有數據冗餘是一件好事。web API中的冗餘
<Items num_items="3" total_cost="10.00">
<Item id="3" cost="3.00" />
<Item id="6" cost="5.00" />
<Item id="7" cost="2.00" />
</Items>
是num_items
和total_cost
確保數據的完整性是有用的,還是僅僅是毫無意義的絨毛?