Accept header is the norm

On 20 January 2014 15:03, 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