WebAPI will automatically fall through it's different formatters until it
finds one marked in the request header. If no matching header is found I
think it falls through to JSON (which I remember you don't like for some
reason).
On 20/01/2014 1:03 PM, "Greg Keogh" <g...@mira.net> wrote:

> Folks, what is the recommended way of letting the caller choose the format
> of the response? I have a method that can return plain text or XML, so how
> does the caller choose the one they want?
>
> I could have a &format= parameter on the method call (Rackspace do that),
> or is it better to inspect the Accept header and obey it? Or something else?
>
> Greg K
>

Reply via email to