metabrainz / web-service-v3-design

A collaborative specification for the third version of the MusicBrainz web service
2 stars 1 forks source link

What does webservice return when #19

Open ijabz opened 12 years ago

ijabz commented 12 years ago

Take /release/:mbid/ if the artist credit name is the same as the artist name does that mean it returns an artistcredit name or just nothing, same for trackname versus recording name.

I hope (and expect) it does return a value, just want to clarify, examples would help.

ocharles commented 12 years ago

If a release has an artist credit where the credited name is 'Break', and it links to the artist Break with MBID 62ce9272-0d54-4ecf-b03b-e7992ae0d320 then the following would be rendered:

"artist-credits": [{
  "artist": "http://musicbrainz.org/ws/3/62ce9272-0d54-4ecf-b03b-e7992ae0d320",
  "name": "Break",
  "suffix": ""
}]

Does that help?

For the track name situation, track names are always returned (as recordings are currently just a hyperlink).