Make the apis/% callback search more branches
Migrated issue
Reported by: psynaptic
There are a few tools that depend on the old apis/% callback returning a result. With the current method, requests to api/% restrict the search to the active or default branch. This limits the usefulness of the apis/% callback.
Instead of restricting the apis/%search_term callback to the active or default branch I propose that we:
* Firstly try to find %search_term within the active or default branch; and failing that
* Try to find %search_term within the same core compatibility; and failing that
* Try to find %search term within the entire API
By doing this clients can always find something in the API at apis/% if it exists.
An alternative might be to create a callback that returns JSON with various data about the requested object. I currently have to parse the function signature and description out of the raw HTML (via jQuery as I'm using nodejs) and it would be much nicer to expose an API with this data instead.
Nonetheless, I think it's useful to be able to search a specific path for any object in the API.
Thoughts?