we're going to suggest the following for scoped search:/dogs?q=foo+barand for global search:/search?q=foo+bar
Having a root api document that contains something like,
<link rel="urn:acme:globalsearch" href="/search?q={keywords}" />
<link rel="urn:acme:dogsearch" href="/dogs?q={keywords}" />
means that developers can probably guess how to search the site.
There is no need to reference "API documentation", just do a GET on
the root of the API and see what it has to offer.
Or if you don't want to invent your own search link relations, you
could always use the OpenSearch standard. All this work has been done
before, there really is no need to re-invent the wheel for every new
API.
Trying to create "web wide" URL conventions is going to be painful task.
Darrel
I like the use of selectors for user context association in URLs.
Dale