Re: [Catalyst] More detailed proposal for changes related to content negotiation and REST

2013-08-12 Thread Marius Olsthoorn
I'm not sure if it fits this discussion, but I think automatic JSON serialization is problematic since the serializer often has to guess if a value needs to be serialized as a string or a number. This is not a problem if you consume it with Perl or Javascript but it might be problematic for some

Re: [Catalyst] Catalyst::Controller::REST and Serializer/Deserializer

2013-02-25 Thread Marius Olsthoorn
You can set the (de)serializer to use in the configuration. For example: package Foo::Controller::Bar; __PACKAGE__-config( 'default' = 'application/json', 'stash_key' = 'rest', 'map' = { 'text/html' = 'JSON',

Re: [Catalyst] Using URL for /search/parameters: bad idea?

2011-09-26 Thread Marius Olsthoorn
Hi, Consider using the query part of the URI to represent the search. Browsers are very good at bookmarking these :) If you have duplication, use the classic way of removing it, by putting functionality in a third module or role. Example /incident/?manager=42product=23 or

Re: [Catalyst] Re: Action for index not 'index'?

2011-03-24 Thread Marius Olsthoorn
} }, $breadcrumb ); } -- Marius Olsthoorn On Wed, Mar 23, 2011 at 9:10 PM, Aristotle Pagaltzis pagalt...@gmx.de wrote: * will trillich will.trill...@serensoft.com [2011-03-23 15:30]: What we do instead is, we call a function to add another link in our breadcrumb chain, so it's deliberate and we're