PATCH vs PUT for Update Bill
问题 We have an inventory feature where we generate Bills. There is a Edit Bill API call. We are confused to implement this as PATCH Or PUT. let's say our BillLineItem consists of { stockId quantity rate } A Bill with id = 1 has 2 LineItems : | Stock Id | Qty | Rate | | 10 | 2 | 10 | | 11 | 3 | 20 | Now lets say I want to change the quantity for stock Id : 10 to 5 and I want to change the rate for stock Id : 11 to 40 Should I represent this as PUT Call like : bill : { id : 1 lineItems : [ {