28 May '12, 9pm

ASCIIcast 350 - REST API Versioning

ASCIIcast 350 - REST API Versioning

We’ll add some routes specifically for the API so that these routes stay separate from the routes for the HTML interface. We’ll use an api namespace to do this which means that any routes defined in it will be prefixed with an /api path. We could add a subdomain constraint instead of using this api namespace but this approach will work perfectly well for us here. We also have to decide how to do the versioning. One option is to store the version as part of the URL and we can do this with another call to namespace . Any controllers or routes defined in this namespace will be expected to be under the same namespace. For now we’ll just put the products resource in here to serve up our products in a RESTful style.

Full article: http://railscasts.com/episodes/350-rest-api-versioning?la...

Tweets

#350 REST API Versioning - RailsCasts

railscasts.com 08 Jun '12, 5am

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. He...

@brunnogomes the official api doc?

api.rubyonrails.org 08 Jun '12, 12am

Migrations can manage the evolution of a schema used by several physical databases. It’s a solution to the common problem ...

A few tips on how to build a well-structured AP...

railstips.org 05 Jun '12, 4pm

A few weeks back, we publicly released the Gauges API . Despite building Gauges from the ground up as an API , it was a lo...

Darren Clarke to sit out a month to rest linger...

pga.com 29 May '12, 1am

LONDON – Reigning British Open champion Darren Clarke has pulled out of next month's U.S. Open. The 43-year-old from North...

@railscasts

railscasts.com 16 May '12, 7am

module Api module V1 class ProductsController < ApplicationController class Product < ::Product # Note: this does not take...

ASCIIcast 352 - Securing an API

railscasts.com 04 Jun '12, 8pm

, we showed you how to build a versioned API for a store application. We can interact with this application through JSON i...