RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: api xFree Episodes x
REST API Versioning
Episode #350May 16, 2012108 comments

REST API Versioning

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. Here I show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers. (10 minutes)
The Rails API Gem
Episode #348May 09, 201274 comments

The Rails API Gem

It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON. (9 minutes)
Securing an API
Episode #352May 23, 201274 comments

Securing an API

There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header. (7 minutes)
Active Model Serializers
Episode #409Mar 09, 2013139 comments

Active Model Serializers

The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output. (10 minutes)
What's New in Rails 4
Episode #400Jan 04, 2013115 comments

What's New in Rails 4

Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features. (20 minutes)
RABL
Episode #322Feb 08, 201264 comments

RABL

RABL - Ruby API Builder Language - provides a DSL for generating JSON or XML responses in a Ruby application. Learn how to share and configure complex JSON data in this episode. (8 minutes)
SOAP with Savon
Episode #290Oct 17, 201146 comments

SOAP with Savon

Communicating with a SOAP API can be a daunting task. Savon makes this easier by presenting the SOAP API through a Ruby interface. (9 minutes)
Billing with Stripe
Episode #288Oct 10, 2011125 comments

Billing with Stripe

Stripe is a full-stack payment solution with very reasonable pricing and is easy to setup. See how to add it to a Rails application here. Currently only available in the US. (16 minutes)
Reading the API
Episode #49Jun 25, 200746 comments

Reading the API

The Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites for accessing the API. Update: sorry about the broken movie, it should work now. (6 minutes)
Action Mailer in Rails 3
Episode #206Mar 22, 201078 comments

Action Mailer in Rails 3

Action Mailer has been rewritten for Rails 3 providing a much cleaner API with its use of the Mail gem. (12 minutes)