20130320 - 'aggregated' results

2 views
Skip to first unread message

Dan Gravell

unread,
Mar 20, 2013, 9:16:43 AM3/20/13
to onemusicapi-...@googlegroups.com
This release adds a new optional parameter to /disc/ queries: "aggregated". Aggregated can be either "off" (the default) or "first". If "off" is specified, or no aggregated parameter is sent, the API works as before. If "first" is specified, a new aggregated struct is included as the first object in the ouput. Here's an example:

http://onemusicapi-beta.elasticbeanstalk.com/20130307/disc?freeDbDiscId=b60f8a0e&track.1.offset=150&track.2.offset=17590&track.3.offset=31785&track.4.offset=49250&track.5.offset=62055&track.6.offset=79095&track.7.offset=101640&track.8.offset=118420&track.9.offset=140255&track.10.offset=167317&track.11.offset=171027&track.12.offset=186015&track.13.offset=222720&track.14.offset=247655&track.leadout.offset=298515&inc=images&aggregated=first

"first" in this context means that the aggregated object chooses the "first" data that apply to each field. For instance, the first image that is found is used in the aggregated "image" results.

Also:
- Track artist results are now provided for tracks
- The hosted MusicBrainz server is currently non-operational... this is affecting all musicBrainzDiscId queries. I hope to have this running again asap.

Dan
Reply all
Reply to author
Forward
0 new messages