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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Joseph Hsu
October 02, 2012
Programming
1
1.4k
API Versioning
API Versioning in rails using Responders and Decorators.
Joseph Hsu
October 02, 2012
Tweet
Share
More Decks by Joseph Hsu
See All by Joseph Hsu
Ruby 2.0
jhsu
3
220
Git Hooks: How to Make Friends
jhsu
5
690
Other Decks in Programming
See All in Programming
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
270
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
130
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.2k
Ruby x Terminal
a_matsuda
7
590
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
500
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
200
CSC307 Lecture 15
javiergs
PRO
0
240
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
210
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
890
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
250
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
株式会社 Sun terras カンパニーデック
sunterras
0
2.1k
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.4k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
540
Typedesign – Prime Four
hannesfritz
42
3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
240
Mobile First: as difficult as doing things right
swwweet
225
10k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
190
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
630
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