add product history rest api.