Disabling all output formats except json outputs xml if no format is specified in URLs

89 views
Skip to first unread message

Andy Hine

unread,
Feb 10, 2012, 12:25:37 PM2/10/12
to frapi-general
To fix:

Hack \library\Frapi\Controller\Main.php:

protected $format = 'json';

protected $formatSetByExtension = true;

Andy Hine

unread,
Mar 2, 2012, 7:47:01 AM3/2/12
to frapi-general
Will there be a fix for this?

David Coallier

unread,
Mar 2, 2012, 9:45:37 AM3/2/12
to frapi-...@googlegroups.com, frapi-general
From the administration panel, in configuration > outputs you should be able to set json as the default

Clay Hinson

unread,
Mar 3, 2012, 12:07:47 AM3/3/12
to frapi-...@googlegroups.com
Andy, 

I've not been able to reproduce this problem. With all outputs except JSON disabled, I receive JSON from FRAPI. 

Can you provide a more specific example of the scenario in which this occurs? 

-- 
Clay Hinson

d.mi...@gmail.com

unread,
Apr 18, 2013, 8:33:49 AM4/18/13
to frapi-...@googlegroups.com, an...@hine.org.uk
I have nearly the same kind of issue.
I would like to use CLI.php output.
I have enable it into Outout menu. When i call my api with .cli at the end it return to me the default output.
in order to have my Cli output i had to set it as default.
however if i use .xml .json .printr, it works, any idea ?

David Coallier

unread,
Apr 18, 2013, 12:18:54 PM4/18/13
to frapi-...@googlegroups.com, an...@hine.org.uk
I would look into the Allfiles.php to see if the CLI.php and CSV.pyp are loaded.

I may have removed CSV because of nested dicts/arrays/lists that are not quite displayable in CSV files (Not without some strange magic)


--
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.
 
 



--
David Coallier

d.mi...@gmail.com

unread,
Apr 22, 2013, 7:16:06 AM4/22/13
to frapi-...@googlegroups.com, an...@hine.org.uk, dav...@php.net
thx, keep me in touch :)
Reply all
Reply to author
Forward
0 new messages