API Cheatsheet

See HTTP_view_API for the view options that apply to most GET operations.

CouchDB Server Level Requests

info

GET /

all_dbs

GET /_all_dbs

config

GET /_config

stats

GET /_stats

UUIDs

GET /_uuids (takes a count parameter)

replicate

POST /_replicate (see Replication)

CouchDB Database Level Requests

Note: Document names must always have embedded / translated to %2F. E.g. "GET /db/foo%2fbar" for the document named "foo/bar". Attachment names may have embedded slashes.

compact

POST /db/_compact

create

PUT /db

drop

DELETE /db

info

GET /db

all_docs

GET /db/_all_docs

open_doc

GET /db/doc_id

save_doc (CREATE)

POST /db

save_doc (UPDATE)

PUT /db/doc_id

remove_doc

DELETE /db/doc_id

bulk_docs

POST /db/_bulk_docs

query (aka temporary view)

POST /db/_temp_view

view

If you are using CouchDB < 0.9.0:

GET /db/_view/designname/viewname

Otherwise

GET /db/_design/designname/_view/viewname

last edited 2009-03-26 16:26:11 by DirkjanOchtman