Product update REST API in Java for e-commerce shops