Changes (68)

* auth scheme, on this step you might only protect your API endpoint using nginx built-in means * expiration handling. in Couchbase database it is possible to associate with the key expiration time. This feature will be exposed later

There are several terms we are using while describing this API.

...

|| Term || Definition|| | document | Arbitrary JSON or BLOB value. It could be referenced by its ID | | bucket | The logical storage, which contains the documents. Like *database* in SQL world, or *collection* in mongodb |

Lets assume we have a bucket named {{wonderland}}.

h2. Document CRUD

This section shows how to perform simple Create, Retrieve, Update and Delete operations

Getting the document by ID. You can also control expiration time of the key using {{X-Couchbase-TTL}} header. The argument should be a ASCII representation of 32-bit number, which interpreted as absolute time in seconds if it is less than {{30 * 24 * 60 * 60}} or epoch time otherwise.