Create Rest API consuming example in Python