trebol-ecommerce / api

eCommerce web service REST specification
GNU General Public License v3.0
0 stars 0 forks source link

Implement `PATCH` methods (to partially update data) #60

Closed bglamadrid closed 1 year ago

bglamadrid commented 1 year ago

When interacting with a single property of an existing element, such as

it makes sense to only send that specific piece of data, instead of sending the whole object containing the updated property.

At least, this is my interpretation of what PATCH methods are meant for.

And here's a better description of what more precisely it is supposed to be.

To me, the need for this is obvious; it helps to shrink the amount of data that is being sent back and forth, when the data itself being worked with is small too.

For scaling and heavy load optimization purposes, this could prove a crucial feature. Thus it should be supported by the API.