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
Architectural Extensions
denyspoltorak
0
260
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
470
CSC307 Lecture 07
javiergs
PRO
0
530
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
260
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
630
Fluid Templating in TYPO3 14
s2b
0
120
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
390
高速開発のためのコード整理術
sutetotanuki
1
370
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
280
CSC307 Lecture 02
javiergs
PRO
1
770
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
150
The Cult of Friendly URLs
andyhume
79
6.8k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
Testing 201, or: Great Expectations
jmmastey
46
8k
Crafting Experiences
bethany
1
44
The SEO identity crisis: Don't let AI make you average
varn
0
62
Facilitating Awesome Meetings
lara
57
6.7k
We Are The Robots
honzajavorek
0
150
Become a Pro
speakerdeck
PRO
31
5.8k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Speed Design
sergeychernyshev
33
1.5k
A designer walks into a library…
pauljervisheath
210
24k
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...