Been playing around with the (Single Page App) BigShelf sample. I found really interesting is the GetBooksForSearch method (/api/BigShelf/GetBooksForSearch) that it takes ad
There is a short webcast about paging and querying with MVC Web API that you can watch here
It explains how you can perform paging by either
pageIndex
and pageSize
, and then returns the requested number of items.AFAIK, you cannot configure the maximum number of items returned by using the first method, but you could limit the number of items returned by using the second approach, and just checking if (pageSize>maxPage) then return maxPage items
.