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
>
> Web: http://www.wellfleetsoftware.com
>
Dr. Marc J. Hadley <mhadley_at_mitre.org>
Principal Software Systems Engineer
The MITRE Corporation
202 Burlington Road
Bedford, MA 01730-1420