Changing Frapi output on the fly

19 views
Skip to first unread message

Louie Miranda

unread,
Feb 8, 2013, 1:07:00 AM2/8/13
to frapi-...@googlegroups.com
Let's say, I sent a Frapi request using XML. Is it possible to return a different one? Like JSON?


Trevor Morse

unread,
Feb 8, 2013, 7:57:03 AM2/8/13
to frapi-...@googlegroups.com
Hi Louie,

You can change the output type for frapi from the client by either
adding an extension to the url: http://api.test/user/3.json or by
passing an accept header: "Accept: application/json".

-tm

On Fri, Feb 8, 2013 at 2:07 AM, Louie Miranda <lmir...@gmail.com> wrote:
> Let's say, I sent a Frapi request using XML. Is it possible to return a
> different one? Like JSON?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "frapi-general" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to frapi-genera...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages