couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: Runtime Configuration #1
Date Sun, 11 May 2008 14:03:21 GMT
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'?

> $ curl -X GET http://localhost:5984/_config/httpd/port
> {"ok":true,"module":"httpd","key":"port","value":"no_value"}

Should `"no_value"' not be `nil'?

-- 
Noah Slater - The Apache Software Foundation <http://www.apache.org/>

Mime
View raw message