Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 80511 invoked from network); 20 Oct 2009 10:30:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 10:30:15 -0000 Received: (qmail 29861 invoked by uid 500); 20 Oct 2009 10:30:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 29796 invoked by uid 500); 20 Oct 2009 10:30:13 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 29786 invoked by uid 99); 20 Oct 2009 10:30:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 10:30:13 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 10:30:11 +0000 Received: from [10.0.1.5] (f053012100.adsl.alicedsl.de [::ffff:78.53.12.100]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Tue, 20 Oct 2009 10:29:06 +0000 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: Bulk insert on 0.11.0b825472 From: Jan Lehnardt In-Reply-To: Date: Tue, 20 Oct 2009 12:29:48 +0200 Content-Transfer-Encoding: 7bit Message-Id: <8172DD98-F5DB-48A1-A866-68C9E74F6C52@apache.org> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1076) 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 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] > $ >