Welcome Guest, Not a member yet? Register   Sign In
Controller Method file extensions? (.xml or .php)
#8

[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.


Messages In This Thread
Controller Method file extensions? (.xml or .php) - by El Forum - 04-23-2009, 10:35 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-23-2009, 09:35 PM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 01:08 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 06:57 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 07:21 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 07:30 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 07:55 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 08:26 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 08:30 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 08:48 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 08:52 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 08:56 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 09:12 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 09:14 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 09:15 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 09:22 AM
Controller Method file extensions? (.xml or .php) - by El Forum - 04-24-2009, 10:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB