REST limit parameter does not work?

Hi, I've implemented the Rijksmuseum REST example. The data from Rijksmuseum is persisted in my domainmodel. Next I made a Service Definition which pointed to a microflow to retrieve all ArtObjects from my own domainmodel and give that back as transient objects. That's all working fine. However, when I try to use the 'offset' and 'limit' parameters, I notice that offset works nice, but the limit does not. The url I use in my browser points to my local machine and reads: http://localhost:8080/rest/artobjectsservice/?data=true&contenttype=json&offset=6&limit=2. I expect that the returned objects start at 207 (I deleted first 200 records, so 201 is the first record) and end at 209. However, the result is that the list start at 207 and shows all records until the end (which is 210). What is going wrong? This is the result by the way: [{ "ArtobjectWebimage": {"Url": ""}, "PrincipalOrFirstMaker": "Anonymous", "Title": "Vers geschreven door J.B.F. van Gogh voor zijn executie, 1778", "key": 207 },{ "ArtobjectWebimage": {"Url": ""}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Road behind the Parsonage Garden in Nuenen", "key": 208 },{ "ArtobjectWebimage": {"Url": ""}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Schelpenvisser", "key": 209 },{ "ArtobjectWebimage": {"Url": ""}, "PrincipalOrFirstMaker": "Vincent van Gogh", "Title": "Korensnijder met hoed, van achteren gezien", "key": 210 }]
1 answers

Shouldn't you need to use the 'top' command, thus $top=2 as mentioned here:

Top (limit) Limiting the amount of returned objects can be done using the $top query option, where the value is a positive integer. For example: ?$top=100