On Tue, Oct 20, 2009 at 1:29 PM, Jan Lehnardt wrote: > > On 20 Oct 2009, at 12:11, Vlad GURDIGA wrote: > >> Hi! >> >> I'm trying to bulk insert a bunch of documents using the method >> described in the wiki page* but I get a single document with a "docs" >> key having as value the list of documents I'm trying to upload. >> >> * http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API >> >> Here is my 9.sjon file: >> >> { >>  "docs": [ >>   {"_id": "0", "integer": 0, "string": "0"}, >>   {"_id": "1", "integer": 1, "string": "1"}, >>   {"_id": "2", "integer": 2, "string": "2"} >>  ] >> } >> >> and I'm trying to upload it with curl like: >> >> $ curl --data-binary @docs/9.json -X POST >> http://admin:admin@localhost:5984/cozy > > The bulk API endpoint is: > > http://example.com/database/_bulk_docs Oops! My bad... :> Thanks! > > Cheers > Jan > -- > > > >> >> {"ok":true,"id":"89e8b18500f51e67bf64a72cba16d9d5","rev":"1-fd14202c52dfc7d8b03f7395f7c82cb4"} >> >> Did that change? >> >> >> More info: >> >> $ curl http://admin:admin@localhost:5984 >> {"couchdb":"Welcome","version":"0.11.0b825472"} >> $ uname -a >> Linux kpax.m 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT >> 2009 x86_64 x86_64 x86_64 GNU/Linux >> $ erl >> Erlang (BEAM) emulator version 5.6.5 [source] [64-bit] [smp:2] >> [async-threads:0] [hipe] [kernel-poll:false] >> $ >> > >