Jim Alateras wrote:
My point is, what is the /cars URL (without the query string) going to return to the user?? It should be defined to return some list and the query string parameters will modify the default criteria for said list.
/cars will return all car resources (i.e unconstrained) the query string will simply constrain the result set.

Right, and if that's the use case, then I support you.  ;)

That's the same philosophy I use when deciding to query string or not. Again, I look at it from "required" parameters to as you put it "constraints" (or possibly "filters") on a result set.

I assume, that you therefore have a url that looks like this?

/car/{$make}/{$model}/{$year}/

And that your "search" list as returned from /cars will have links to individual car resources like the above?

Just curious.

Adam

Reply via email to