Python Invoke Rest Api Definition