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
Christopher Hein
December 18, 2012
Programming
2
160
Grape APIs
Christopher Hein
December 18, 2012
Tweet
Share
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
27
Rails Engines
christopherhein
0
120
Other Decks in Programming
See All in Programming
AI巻き込み型コードレビューのススメ
nealle
2
1.2k
AgentCoreとHuman in the Loop
har1101
5
240
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
790
今から始めるClaude Code超入門
448jp
8
9k
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
2026年 エンジニアリング自己学習法
yumechi
0
140
CSC307 Lecture 03
javiergs
PRO
1
490
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
Fluid Templating in TYPO3 14
s2b
0
130
AI時代の認知負荷との向き合い方
optfit
0
160
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.6k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
330
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Unsuck your backbone
ammeep
671
58k
Marketing to machines
jonoalderson
1
4.6k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
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...