P is for Practical | |
PerlMonks |
[OT] URL structure (Was: "Hardening" a web forum app)by MidLifeXis (Monsignor) |
on Apr 07, 2011 at 13:41 UTC ( [id://898062]=note: print w/replies, xml ) | Need Help?? |
This is off topic from the original post, but I have a slight (hopefully constructive) criticism about your URL structure. Is the editor or the post the resource? In my mind, the post is the resource you are making available, and the editor is an action that you want to do to that resource. May I suggest that perhaps the URL should be reversed: http://example.com/123/edit? The article ID is the identifier for everything else that happens to that resource. Whether or not you adhere to REST or some other method of organizing your resources, I posit that having the ID first will make it easier to manage your application in the future. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|