29 Mar '17, 12am

Modeling a Paginated API as a Lazy Stream

Modeling a Paginated API as a Lazy Stream

The API you’re integrating against returns an HTTP 404 response code for pages with no results so the Enumerator stops iterating when it gets a non-successful status code. For other API implementations, it may make sense to check on empty results instead. Some APIs provide links to the “next” page so you would check on that. The Bootic client has an example of this approach.

Full article: https://robots.thoughtbot.com/modeling-a-paginated-api-as...

Tweets

Nicki Minaj Signed Modeling Contract With Wilhe...

hypebeast.com 29 Mar '17, 3am

has recently inked a modeling contract with Wilhelmina International, Inc. , according to Vogue . The Queens rapper has jo...

mtcli (0.0.1): A command line client for Movabl...

rubygems.org 02 Apr '17, 11am

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and then install them . Use the API ...