users@wadl.java.net

Re: Returning a set of resources

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Wed, 31 Oct 2012 11:58:31 -0400

Hi Marc,

Thank you for your help. I realize this thread is not specifically a
wadl question.

Assuming the matching resources may include binary resources (e.g.
images) which of these alternatives is better and why? Thanks again.

On 10/31/2012 11:12 AM, Hadley, Marc J wrote:
> An alternative would be to return a results document that contains a list of matching resources, metadata about each one (including media type) and a link to GET it from. You could use XML, JSON, RDF, whatever for the results document.
>
> Marc.
>
> On Oct 30, 2012, at 8:12 PM, Farrukh Najmi wrote:
>
>> Specifically, I am wondering if response with mediaType=mime/multipart be the best design?
>>
>> On 10/30/2012 08:02 PM, Farrukh Najmi wrote:
>>> Hi Guys,
>>>
>>> I am working on a REST interface described by WADL description. A GET operation called "search" needs to be defined that is expected to return a resource that is actually a set of resources that match the specified query. Each resource in the set may be of an arbitrary mediaType.
>>>
>>> I am wondering how to specify the wadl:response for such a response.
>>>
>>> Any advice?
>>>

-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com