couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: A Simple REST API
Date Tue, 12 Nov 2013 02:18:22 GMT
Oh, I should add: If you want to handle HTTP yourself, just use the net/http module in the
Ruby standard library.

But I think you’ll find yourself writing repetitive blocks of code in calls that you make
to it, because there are common REST and CouchDB patterns to a lot of the API calls. Stuff
like “append database name and document ID to server URL, add common query params, send
request, check result code, unpack JSON …" It’s easier to use a CouchDB client library
that encapsulates that stuff for you.

View raw message