incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: Runtime Configuration #1
Date Sun, 11 May 2008 14:45:56 GMT

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
--


Mime
View raw message