Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
API Versioning
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Joseph Hsu
October 02, 2012
Programming
1.4k
1
Share
API Versioning
API Versioning in rails using Responders and Decorators.
Joseph Hsu
October 02, 2012
More Decks by Joseph Hsu
See All by Joseph Hsu
Ruby 2.0
jhsu
3
230
Git Hooks: How to Make Friends
jhsu
5
700
Other Decks in Programming
See All in Programming
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
3.2k
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
170
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.1k
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1.1k
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
430
Inside Stream API
skrb
1
630
LLM Plugin for Node-REDの利用方法と開発について
404background
0
160
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
360
Lessons from Spec-Driven Development
simas
PRO
0
130
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
180
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.4k
Swiftのレキシカルスコープ管理
kntkymt
0
210
Featured
See All Featured
Become a Pro
speakerdeck
PRO
31
6k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
840
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
320
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
600
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
560
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
320
Automating Front-end Workflow
addyosmani
1370
210k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Six Lessons from altMBA
skipperchong
29
4.3k
Transcript
@jhsu / Josephhsu.com WNYRuby Lightning Talk 2 Oct., 2012 Versioning
an API Tuesday, October 2, 12
Hypermedia API Responders HATEOAS Tuesday, October 2, 12
Versioning Things Change. Tuesday, October 2, 12
Versioning Don’t break things, please. Tuesday, October 2, 12
Different ways * Param - http://blah.io/api/users?v=1.0 * URI - http://blah.io/api/v1/users
* Headers - http://blah.io/api/users (‘Accept’ header) Tuesday, October 2, 12
headers Accept: application/vnd.thing.v1+json Accept: application/vnd.github.v3+json Tuesday, October 2, 12
Implementation * Responders * Decorator Pattern (draper) Tuesday, October 2,
12
incoming code Tuesday, October 2, 12
Actioncontroller::REsponder #to_[format] Tuesday, October 2, 12
Tuesday, October 2, 12
Actioncontroller::REsponder #to_[format] Tuesday, October 2, 12
Tuesday, October 2, 12
controllers Tuesday, October 2, 12
Actioncontroller::REsponder #to_[format] Tuesday, October 2, 12
josephhsu.com Thanks. Tuesday, October 2, 12