incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: uuids as xml?
Date Thu, 18 Mar 2010 15:07:53 GMT

On 18 Mar 2010, at 08:24, 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.
> 
> Would be some nice and decent behaviour .. ;-)
> 
> 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.

Which language are you using to talk to CouchDB?

Cheers
Jan
--

> 
> 
> 
> On Thu, Mar 18, 2010 at 11:44 AM, Matt Goodall <matt.goodall@gmail.com> wrote:
>> On 18 March 2010 10:20, wolfgang haefelinger <whaefelinger@gmail.com> 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
>>> <sebastiancohnen@googlemail.com> 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=xml
>>>>> {"uuids":["d5158e7420eee5d987fcccde84795847"]}
>>>>> 
>>>>> How would I do that?
>>>>> 
>>>>> // Wolfgang.
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Wolfgang Häfelinger
>>> häfelinger IT - Applied Software Architecture
>>> http://www.haefelinger.it
>>> +31 648 27 61 59
>>> 
>> 
> 
> 
> 
> -- 
> Wolfgang Häfelinger
> häfelinger IT - Applied Software Architecture
> http://www.haefelinger.it
> +31 648 27 61 59


Mime
View raw message