<div dir="ltr"><div><div><div><div>No. It's just more RESTful. I mainly build API with Dancer, so I tend to follow a RESTful design.<br><a href="http://en.wikipedia.org/wiki/Representational_state_transfer">http://en.wikipedia.org/wiki/Representational_state_transfer</a><br><br></div><div>GET is used to list/query a collection and also retreive an object<br></div>POST is used to create an object into a collection.<br></div>PUT to update an object<br></div>DELETE to delete an object<br><br></div>Since you are quering a collection, I'd suggest using GET.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 3:23 PM, John Stoffel <span dir="ltr"><<a href="mailto:john@stoffel.org" target="_blank">john@stoffel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Jacques> Here is how I do it. Check the gist for better formatting.<br>
Jacques> <a href="https://gist.github.com/jacqueslareau/1e9dcc04d416e1216161" target="_blank">https://gist.github.com/jacqueslareau/1e9dcc04d416e1216161</a><br>
<br>
Jacques> status_ok is because it's an API. You can use the value returned in a template instead.<br>
<br>
Thanks a ton for this pointer, I'll look into it more deeply.<br>
<br>
Now for a stupid question, has everyone moved away from using 'post'<br>
to instead using 'get' as the method of choice for form handling in<br>
general? I'm still stuck in the old PHP days honestly, but trying to<br>
move upto newer stuff. Tried Rails years ago, but all the examples of<br>
building a blog weren't what I needed/wanted. Sigh... I don't know<br>
why everyone things a blog is a good example.<br>
<br>
Anyway... sorry for whining. I'll take a look at your code and see<br>
how I can make it work for me.<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>