Controller Method file extensions? (.xml or .php) |
[eluser]xwero[/eluser]
[quote author="Fenix" date="1240599325"]I only posted the last snippet because you said you thought query strings make it more difficult. I was showing the contrary.[/quote] Query strings make it difficult for the user to build their custom data request. Isn't http://mysite.com/api/categories/orderby...=555555555 easier to understand than http://mysite.com/api/categories.xml?acc...&sort=desc Functionalities should always be developed thinking about the users first. For example quite a few people don't like it the database api uses so many methods to build a sql statement. I think they rather saw only three methods for the select statement: rows, row and value. And these statement have all the parameters to build any kind of sql statement. The same goes for building urls. You have a part as segments and a part as a query string separated by the accesskey. of course it's up to you if you want to make it easy on yourself or on your site/app users. |
Welcome Guest, Not a member yet? Register Sign In |