PromsieKit + Alamofire for loading paged HTTP Data
问题 I am migrating some code from RestKit to Alamofire. I use MagicalRecord + AlamofireObjectMapper to map the JSON into CoreData objects. I am now faced with the following situation: My Data lives at this URL: http://domain.com/api/resources?start=XX&limit=YY Now I have to do this: Download the first page of data from a given URL using a page-size of 50 If the number of loaded objects is equal to the page-size increment the start parameter by the page size If the number is less than the page