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

Use of "limit" and "offset" arguments for collections in WS/2

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • Web service
    • None

      In WS/2, only the first $MAX_ITEMS (25) items are returned on "GET /ws/2/collection/<COLLECTION-ID>/releases" queries, as per the find_by_collection call in musicbrainz-server/lib/MusicBrainz/Server/Controller/WS/2/Collection.pm, line 60:

      my @results = $c->model('Release')>find_by_collection($collection>id, $MAX_ITEMS);

      Would it be possible to have a limit/offset mechanism as for the other browse queries? I guess it would be something in the lines of

      my ($limit, $offset) = $self->_limit_and_offset ($c);
      my @results = $c->model('Release')>find_by_collection($collection>id, $limit, $offset);

      Thanks a bunch!

      Cheers,
      Didje.

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package