curl -X POST http(s)://${endpoint} \
-H 'Content-Type: application/json' \
-d '{ "data": {"ndarray": [[5.964,4.006,2.081,1.031]]} }'
X = np.array([[5.964,4.006,2.081,1.031]])
curl -X POST http(s)://${endpoint} \
-H 'Content-Type: application/json' \
-d '{ "data": {"tensor": {"shape":[1,4],"values":[5.964,4.006,2.081,1.031]}} }'
X = np.array([5.964,4.006,2.081,1.031]).reshape([1,4])
curl -X POST http(s)://${endpoint} \
-H 'Content-Type: application/json' \
-d '{ "strData": "any string" }'
curl -X POST http(s)://${endpoint} \
-F 'binData=@your_image.jpg'
X = bytes(<content of your_image.jpg>)