Resources for learning how to design good API wrappers in ruby [closed]
Asked Answered
B

3

19

I'd like to learn how to design good API wrappers in ruby. I'm looking for:

  • blog articles
  • tutorials
  • best code and library to learn from the code directly (well commented and designed)
  • books

... and also,

what are some of your favorite API wrappers and what makes them special?

Any source is welcome Thanks in advance

UPDATE jun 29 2011

Building a Platform API on Rails

UPDATE: 13/06/2011

have a look at great post on how to develop an an API wrapper/interface client: - http://www.arailsdemo.com/posts/56

Baxie answered 10/5, 2011 at 22:52 Comment(0)
P
8

Chapter 2 of Ruby Best Practices might be helpful. You can read it for free here.

Patrickpatrilateral answered 11/5, 2011 at 17:54 Comment(10)
... you meant Chapter 2: "Designing Beautiful APIs" :-)Baxie
... and here it is a good article wynnnetherland.com/blog/what-makes-a-good-api-wrapperBaxie
... an old article, but still get the point to build client wrappers adam.heroku.com/past/2008/8/8/ruby_libs_for_making_webBaxie
monster_mash: this is great. Provides a fun interface to quickly build API libraries using Typhoeus: github.com/dbalatero/monster_mashBaxie
... net and clean even raw, a simple wrapper for "whoisxmlapi" based on Net::HTTP.get_response(URI.parse(url)) — Read more: github.com/ahlatimer/Whois-API-Ruby-Wrapper/blob/master/…Baxie
precious client performance comparison: github.com/igrigorik/em-http-request/blob/master/benchmarks/…Baxie
... another HTTP Request Performance comparison to develop even faster API wrappers: toevolve.org/2011/04/03/http-request-performance.html ( on github - github.com/threez/test-http-clients )Baxie
CORS API with OAuth2 authentication using Rails and AngularJS looks great nils-blum-oeste.net/…Baxie
The link in the answer is dead. Is it maybe available somewhere else? Are there any good, up-to-date ressources?Gautious
Wrapping Your API In A Custom Ruby Gem blog.engineyard.com/2014/wrapping-your-api-in-a-ruby-gemBaxie
T
9

since testing is one part of a good API wrapper I recommend this for a start on the topic.

Writing an API Wrapper in Ruby with TDD

Touch answered 13/8, 2012 at 15:15 Comment(0)
P
8

Chapter 2 of Ruby Best Practices might be helpful. You can read it for free here.

Patrickpatrilateral answered 11/5, 2011 at 17:54 Comment(10)
... you meant Chapter 2: "Designing Beautiful APIs" :-)Baxie
... and here it is a good article wynnnetherland.com/blog/what-makes-a-good-api-wrapperBaxie
... an old article, but still get the point to build client wrappers adam.heroku.com/past/2008/8/8/ruby_libs_for_making_webBaxie
monster_mash: this is great. Provides a fun interface to quickly build API libraries using Typhoeus: github.com/dbalatero/monster_mashBaxie
... net and clean even raw, a simple wrapper for "whoisxmlapi" based on Net::HTTP.get_response(URI.parse(url)) — Read more: github.com/ahlatimer/Whois-API-Ruby-Wrapper/blob/master/…Baxie
precious client performance comparison: github.com/igrigorik/em-http-request/blob/master/benchmarks/…Baxie
... another HTTP Request Performance comparison to develop even faster API wrappers: toevolve.org/2011/04/03/http-request-performance.html ( on github - github.com/threez/test-http-clients )Baxie
CORS API with OAuth2 authentication using Rails and AngularJS looks great nils-blum-oeste.net/…Baxie
The link in the answer is dead. Is it maybe available somewhere else? Are there any good, up-to-date ressources?Gautious
Wrapping Your API In A Custom Ruby Gem blog.engineyard.com/2014/wrapping-your-api-in-a-ruby-gemBaxie
G
1

Take a look at Instagram Ruby Client.
It should give you a fair idea on how to write modular third party API wrappers in Ruby.

Gemmagemmate answered 30/11, 2016 at 13:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.