Java REST API for e-commerce shops to update inventory