On May 11, 2008, at 16:03, Noah Slater wrote:
> On Wed, Apr 23, 2008 at 11:35:07PM +0200, Jan Lehnardt wrote:
>> $ curl -X GET http://localhost:5984/_config/httpd/port
>> {"ok":true,"module":"httpd","key":"port","value":"5984"}
>> $ curl -X PUT http://localhost:5984/_config/httpd/port -d "5985"
>> {"ok":true,"module":"httpd","key":"port","value":"5985"}
>
> Sweet.
>
>> $ curl -X DELETE http://localhost:5984/_config/httpd/port
>> {"ok":true,"module":"httpd","key":"port","old_value":"5985"}
>
> Why bother with `old_value'?
For a client's convenience.
>> $ curl -X GET http://localhost:5984/_config/httpd/port
>> {"ok":true,"module":"httpd","key":"port","value":"no_value"}
>
> Should `"no_value"' not be `nil'?
null, but yeah. I use the no_value atom in Erlang, but that
could/should probably morphed into null in JSON.
Thanks for your input!
Cheers
Jan
--
|