[Dancer-users] one route, different actions based on context
Alastair Sherringham
sherringham at gmail.com
Fri Dec 24 23:10:54 CET 2010
On 24 December 2010 19:48, Puneet Kishor <punk.kish at gmail.com> wrote:
>>
>> $ curl http://application/foo/all
>>
>> a json stream of all the foo widgets is returned.
There's an advent calendar up just now with some advice on this sort
of thing e.g.
Writing REST web services with Dancer
http://advent.perldancer.org/2010/8
Some curl usage - maybe use "application/json"? e.g.
curl -H 'Accept-Type: application/json' <url>
Cheers,
--
Alastair Sherringham
http://www.sherringham.net
More information about the Dancer-users
mailing list