-Examples of Multi Get and Multi Put using Stargate (JSON)
I am trying to find some examples involving multi-get and multi-put using stargate but couldn't get any.
I am following this page:
For multi-put, I tried the following:
curl -v -X PUT -H "Accept: application/json" http://hostname:9999/testjson/false-row-key --data @./data.txt
* About to connect() to hostname port 9999 (#0)
* Trying 126.96.36.199... connected
* Connected to hostname (188.8.131.52) port 9999 (#0)
> PUT /testjson/row3 HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: hostname:9999
> Accept: application/json
> Content-Length: 271
> Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 415 Unsupported Media Type
< Content-Length: 0
* Connection #0 to host hostname left intact
* Closing connection #0
For multi-get I tried the following:
curl -v -H "Accept: application/json" http://hostname:9999/testjson/multiget/?row=row1&row=row2
The above command only returns the first row.
If somebody has used the above operations successfully using REST, it would be of great help to
share the details.