I think you first need to choose what you want to study, because there are several parts.
A gem like facebooker is used to use the web service API, not to create or expose the API (for the web service). To understand such a library and what it does, you can try to learn more about the API as a whole, as well as how to access them using Ruby.
Although the Rails and Rails communities span the RESTful (or actually RESTlike) API, there are many other forms, such as SOAP . Facebook for example. dropped REST in favor of its graphical API. Check out the answers to this various types question to learn more: Examples of the best SOAP / REST / RPC web APIs? And why do you like them? And what is wrong with them?
For access methods (REST) ββAPIs, I would suggest looking more closely at the source code for gems, for example, HTTParty and rest-client , as well as the Ruby Net :: HTTP Standard Library.
What is happening with the API and web services, I heard good things about the " Other Web Services" , but there are a whole bunch of books and about a gazillion blog posts there on this topic. Google is your friend.
And then you probably want to take a look at the development of ruby ββstones in general. This answer may give you some guidance in this regard: Ruby: How to write a gem?
This is an endless topic, and I suggest just starting somewhere. Learn how the APIs work, how to access them, and then read a lot, a lot of source code, for example. Facebooker or one of the other Facebook API jewels. See how they work and start writing code. Good luck
polarblau
source share