I wanted to get some feedback from you guys on what makes more sense regarding search. My initial thought about the implementation was to create a new resource, '/search/', that you'd pass a filter to with the search string. The resource would return to you a list of results. Each result would contain the full name, the type of object (game, concept, object, etc.), the URL to the small image associated of the object, and the API detail URL to get more information. This is similar to how the auto-complete search box works on the site.
The advantage of this is you can query across multiple types of objects (games, concepts, objects, etc.). The downside is that you'll probably always have to perform a subsequent query to get the data you're really looking for.
On the other hand, I could add search filters to all the existing resources. So it'd be something like "http://api.giantbomb.com/games/?search=warcraft". That would return a list of results from the standard /games/ resource that matched "warcraft".
The limitation here is that you won't be able to search across multiple types (is that interesting for anyone?).
Of course, I could always implement both. I'm going to try to get at least one of these ideas implemented today or tomorrow.
Log in to comment