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
Grape APIs
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Christopher Hein
December 18, 2012
Programming
160
2
Share
Grape APIs
Christopher Hein
December 18, 2012
More Decks by Christopher Hein
See All by Christopher Hein
Controllers and Service Catalog; The Power of CRDs
christopherhein
0
160
Extending Kubernetes with Operators/Controllers
christopherhein
0
28
Rails Engines
christopherhein
0
120
Other Decks in Programming
See All in Programming
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
600
JOAI2026 1st solution - heron0519 -
heron0519
0
140
Back to the roots of date
jinroq
0
290
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.4k
GoogleCloudとterraform完全に理解した
terisuke
1
120
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
190
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
440
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
480
Running Swift without an OS
kishikawakatsumi
0
850
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
140
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
200
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
280
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
Balancing Empowerment & Direction
lara
6
1.1k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
280
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
530
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
RailsConf 2023
tenderlove
30
1.4k
Are puppies a ranking factor?
jonoalderson
1
3.3k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
AI: The stuff that nobody shows you
jnunemaker
PRO
6
580
Transcript
APIs
Rails
Don’t really fit together.
Sinatra
mmm tasty...
But I’m good programmer... http://threevirtues.com/ (1)
Enter...
Grape 0.2.0!!!
Why@?#$%!
Simple... class API < Grape::API get :users do # omitted
for awesomeness end end
Versions... class API < Grape::API version “v1” get :users do
# omitted for awesomeness end end
Helpers... class API < Grape::API helpers do def current_user User.find
params[:id] end end # omitted for awesomeness end
Multi-file... class API < Grape::API version “v1” mount API_v1 #
omitted for awesomeness end
Describing... class API < Grape::API desc "Returns users", {params:{id: {}}}
get :users do # omitted for awesomeness end end
Demo...