-
Improvement
-
Resolution: Duplicate
-
Normal
-
None
-
None
-
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.
- duplicates
-
MBS-2827 /ws/2/collection can't return more than 25 releases
- Closed