-
To insert send a GET or POST request to: http://simpledb.appspot.com/put?content=....
Return value is a key which you can later use to update or read the value.
For example using curl from a linux command line:
$ curl http://simpledb.appspot.com/put?content=123
aghzaW1wbGVkYnIKCxIESXRlbRgWDA
$
-
To read send a GET request to http://simpledb.appspot.com/get?key=....
Return value is the data you have for that key, or an empty string if there's nothing stored for the key.
For example:
$ curl http://simpledb.appspot.com/get?key=aghzaW1wbGVkYnIKCxIESXRlbRgWDA
123
$
-
To update send a GET or POST request to http://simpledb.appspot.com/put?key=....&content=....
Return value is a key which you can later use to update or read the value.
Note that if you provide a wrong key, it will be ignored and a new item will be inserted instead (which means you will get a new key in the response)
For example:
$ curl http://simpledb.appspot.com/put?key=aghzaW1wbGVkYnIKCxIESXRlbRgWDA&content=456
aghzaW1wbGVkYnIKCxIESXRlbRgWDA
$ curl http://simpledb.appspot.com/get?key=aghzaW1wbGVkYnIKCxIESXRlbRgWDA
456
$