REST API to put document into bucket, couchbase 3.0


#1

Hi,

With couchbase 2.5 we were able to use REST API in order to put document into bucket.

It seems not work in couchbase 3.0.

-XPUT http://URL:8092/bucket/doc_id for example.
{“error”:“not_found”,“reason”:“missing”}

I can I do without to use PHP SDK ?

Thank you.


#2

While that may have worked, it wasn’t documented or intended as an API feature. Can you use the SDK to do this instead?

Also, if you’re looking for a command line way to insert a document into a bucket, have a look at the cbc utilities which are part of libcouchbase.