Hello group members,
Regarding pagination of items in Rest API, I mentioned the following in the current code hosted in github master:
In the collections/{id} endpoint however, limit and offset request params are correctly used for the pagination of items.
So, there is a misleading usage of limit and offset params. In one case, they are used for collections pagination and in the second, for item pagination.
My guess is that "collection/" endpoint should give the option to expand items (and thus, offset and limit only refer to collections) while the "collection/{id}" endpoint can expand items using the offset and limit from the request.
I also think that items/{collection_id} endpoint is missing. It is useful for getting all the items of a specific location (it can be done via "collection/{id}" endpoint but it is more straightforward to ask items of a specific collection.
Another point I would like to discuss is the option to provide some subset of metadata of the items in the "collections/..." endpoints. Currently, if someone requests for a collection with "item" expanding, it gets the items but the "metadata" of the items is not expanding. So, if someone wants to display some sort of information of items (ie a list of items), he only has the name of the "item" which is the title. Is he wants to display the authors as well (before showing a full detail page of the item), he needs to ask for the specific item to get the metadata. So, we may preconfigure some metadata (maybe via the cfg file) to be displayed in the item endpoint without needing of expansion.
Regards,
Kostas Stamatis