This repository include the basic code to create a public api in rails, if you want to see how to use it in a client you can take a look the following repository: