"Search" endpoint can't search all types of data
naegelejd opened this issue · 0 comments
naegelejd commented
The "search" endpoint on BreweryDB allows for searching breweries, beers, guilds and events but since objects of each type are returned in one JSON response, the Go implementation just has 4 separate methods for searching each type. This makes the code simple, but it also means a user must make more requests to search for multiple types of objects, e.g. searching for both breweries and beers with a specific term requires two method calls and two HTTP requests.