Skip to content

bwillis/350-rest-api-versioning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RailsCasts Episode #350: REST API Versioning

http://railscasts.com/episodes/350-rest-api-versioning

Requires Ruby 1.9.2 or higher.

Commands used in this episode

rails g migration change_products_released_on
rake db:migrate
cp -R app/controllers/api/v1 app/controllers/api/v2
curl -H 'Accept: application/vnd.example.v1' http://localhost:3000/api/products

Version Cake Implementation

See https://github.com/bwillis/versioncake for more details on the gem.

curl -H 'Accept: application/json; api_version=1' http://localhost:3000/products.json

About

✅ Versioning API comparison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 96.2%
  • JavaScript 2.8%
  • CoffeeScript 1.0%