curl - Create document by Rest API -
i´m trying create document productsid
on couchbase contain using rest api.
after read documentation end creating crul script, i´m not being able make works
curl -v -h "content-type: application/json" -x put -d '{"country":"france","iata":"a5","callsign":"airlinair","name":"airlin air","icao":"rla","type":"airline","id": "19810"}' administrator:password@localhost:8091/pools/default/buckets/default/docs/productsid
i´m receiving 405. method not allowed
but in documentation seems it´s option available.
edit
the reason why want use rest api it's because need modify documents , clean others in test framework. implement whole api little bit overkill. surprise me is, can create clusters, buckets, delete documents rest api, not create it?. sounds wrong me. regards
you should rather write own backend , expose through rest. api referencing not supposed used application.
read more @ http://blog.couchbase.com/firstapp-couchbase-nodejs-ottoman
Comments
Post a Comment