From user-return-9410-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Mar 18 13:31:14 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 42158 invoked from network); 18 Mar 2010 13:31:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 13:31:14 -0000 Received: (qmail 54260 invoked by uid 500); 18 Mar 2010 13:31:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54224 invoked by uid 500); 18 Mar 2010 13:31:10 -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 54216 invoked by uid 99); 18 Mar 2010 13:31:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 13:31:10 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [195.85.130.166] (HELO smtp.atwork.nl) (195.85.130.166) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 13:31:03 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.atwork.nl (Postfix) with ESMTP id 20E0339C211 for ; Thu, 18 Mar 2010 14:30:43 +0100 (CET) Received: from waldo.buyways.nl (atwork-154.r-212.178.116.atwork.nl [212.178.116.154]) by smtp.atwork.nl (Postfix) with ESMTP id 6C46539C169 for ; Thu, 18 Mar 2010 14:30:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by waldo.buyways.nl (Postfix) with ESMTP id 21B802C709C for ; Thu, 18 Mar 2010 14:30:31 +0100 (CET) Received: from waldo.buyways.nl ([127.0.0.1]) by localhost (waldo.buyways.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ls-1wm2rMgHW for ; Thu, 18 Mar 2010 14:30:31 +0100 (CET) Received: from zealand.localnet (beauregard.buyways.nl [192.168.217.1]) by waldo.buyways.nl (Postfix) with ESMTP id 040E72C709B for ; Thu, 18 Mar 2010 14:30:31 +0100 (CET) From: Markus Jelsma Reply-To: markus@buyways.nl Organization: Buyways To: user@couchdb.apache.org Subject: Re: uuids as xml? Date: Thu, 18 Mar 2010 14:30:40 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; i686; ; ) References: <214c385b1003180344q6606c600l11bbf0c09cfd00a1@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201003181430.40848.markus@buyways.nl> X-Virus-Scanned: by @Work X-Virus-Checked: Checked by ClamAV on apache.org # curl http://localhost:5984/_uuids optionally, you can specify the count parameter to get a list of uuids. On Thursday 18 March 2010 14:24:50 wolfgang haefelinger wrote: > > However, CouchDB should probably respond with a "406 Not Acceptable" > > if it can't provide what was asked for in the various accept headers > > to make it clear to the client why it failed. >=20 > Would be some nice and decent behaviour .. ;-) >=20 > However, how do I get this uuids then just using curl and a couple of > shell commands (except perl, python, ruby, ..)? I don't get it. >=20 > On Thu, Mar 18, 2010 at 11:44 AM, Matt Goodall =20 wrote: > > On 18 March 2010 10:20, wolfgang haefelinger =20 wrote: > >> Well, I thought that couchdb has a REST interface, no? > > > > REST doesn't dictate what representations (XML, JSON, etc) are > > supported. It's perfectly ok for a RESTful interface to only handle > > JSON. > > > > However, CouchDB should probably respond with a "406 Not Acceptable" > > if it can't provide what was asked for in the various accept headers > > to make it clear to the client why it failed. > > > > - Matt > > > >> On Thu, Mar 18, 2010 at 10:57 AM, Sebastian Cohnen > >> > >> wrote: > >>> hey wolfgang, > >>> > >>> the answer is simple: you can't get UUIDs as XML :) > >>> > >>> On 18.03.2010, at 10:46, wolfgang haefelinger wrote: > >>>> Hi, > >>>> trying to get a uuid(s) back as XML. Acceptance header does not work, > >>>> neither "format": > >>>> > >>>> $ curl -H 'Accept:application/xml' > >>>> http://localhost:5984/_uuids?format=3Dxml > >>>> {"uuids":["d5158e7420eee5d987fcccde84795847"]} > >>>> > >>>> How would I do that? > >>>> > >>>> // Wolfgang. > >> > >> -- > >> Wolfgang H=C3=A4felinger > >> h=C3=A4felinger IT - Applied Software Architecture > >> http://www.haefelinger.it > >> +31 648 27 61 59 >=20 Markus Jelsma - Technisch Architect - Buyways BV http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350