Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9731

/ws/3 should not prefix count and offset keys with entity type in response to a browse request

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • ws/3
    • None
    • Web service
    • None

      When doing a browse request, the count and offset keys are prefixed by the entity name, for example "recording-offset" and "recording-count".

      It makes deserialization harder. If it was just "offset" and "count", the JSON response could be handled like a search request.

      I guess this is intended, so feel free to close this issue. I was just wondering why this is done?

      Example:
      https://musicbrainz.org/ws/2/recording?artist=b071f9fa-14b0-4217-8e97-eb41da73f598&fmt=json

      Returns:

      {"recording-offset":0, "recording-count":8173, "recording":[...]}

      Expected:

      {"offset":0, "count":8173, "recording":[...]}

            Unassigned Unassigned
            wo80 Christian Woltering
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                ws/3