Your SlideShare is downloading. ×
0
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Rapid-ruby-api-on-grape
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Rapid-ruby-api-on-grape

8,401

Published on

this presentation is for a Rails Meetup event which happened on July 24th 2011, Beijing.

this presentation is for a Rails Meetup event which happened on July 24th 2011, Beijing.

Published in: Technology
1 Comment
22 Likes
Statistics
Notes
No Downloads
Views
Total Views
8,401
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
95
Comments
1
Likes
22
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. wangyaodi@gmail.com 2011/07/24 Copyright 2010, Intridea Inc. All Rights Reserved.
  • 2. About Me  Symbol - yorzi Details - about.me/wangyaodi Senior Engineer at Intridea Inc. More Links:  http://github.com/yorzi  http://twitter.com/yorzi Andy Wang  http://more-sites/yorzi Copyright 2010, Intridea Inc. All Rights Reserved.
  • 3. What’s Grape? Copyright 2010, Intridea Inc. All Rights Reserved.
  • 4. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 5. https://github.com/mbleigh https://github.com/intridea/omniauth https://github.com/mbleigh/acts-as-taggable-on Copyright 2010, Intridea Inc. All Rights Reserved.
  • 6. Ok, BUTWhat’s Grape? Copyright 2010, Intridea Inc. All Rights Reserved.
  • 7. “An opinionated micro-framework for creating REST-like APIs in Ruby” https://github.com/intridea/grape http://www.infoq.com/articles/rest-introduction Copyright 2010, Intridea Inc. All Rights Reserved.
  • 8. Ruby makes hard things easy Copyright 2010, Intridea Inc. All Rights Reserved.
  • 9. But APIs still aren’t easy Copyright 2010, Intridea Inc. All Rights Reserved.
  • 10. APIs in Rails are too entangled Copyright 2010, Intridea Inc. All Rights Reserved.
  • 11. APIs in Sinatra are too manual Copyright 2010, Intridea Inc. All Rights Reserved.
  • 12. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 13. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 14. How To Use Grape? Copyright 2010, Intridea Inc. All Rights Reserved.
  • 15. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 16. Remember: Grape APIs are Rack applications http://ruby.about.com/od/rack/a/What-Is-Rack.htm Copyright 2010, Intridea Inc. All Rights Reserved.
  • 17. Basic API Copyright 2010, Intridea Inc. All Rights Reserved.
  • 18. Result,JSON Serialization Copyright 2010, Intridea Inc. All Rights Reserved.
  • 19. Add Prefix Copyright 2010, Intridea Inc. All Rights Reserved.
  • 20. Add Version Copyright 2010, Intridea Inc. All Rights Reserved.
  • 21. Add Namespace Copyright 2010, Intridea Inc. All Rights Reserved.
  • 22. Other Namespacing Key words Copyright 2010, Intridea Inc. All Rights Reserved.
  • 23. Add Basic Auth Copyright 2010, Intridea Inc. All Rights Reserved.
  • 24. Use Helpers Copyright 2010, Intridea Inc. All Rights Reserved.
  • 25. Raise Error Copyright 2010, Intridea Inc. All Rights Reserved.
  • 26. Error Details Copyright 2010, Intridea Inc. All Rights Reserved.
  • 27. How To Run Grape APIs? Copyright 2010, Intridea Inc. All Rights Reserved.
  • 28. Remember: Grape APIs areRack applications Copyright 2010, Intridea Inc. All Rights Reserved.
  • 29. Run As a Rack App Run `rackup` in Rack App(API) folder Copyright 2010, Intridea Inc. All Rights Reserved.
  • 30. Grape with Rails 2.3.x Copyright 2010, Intridea Inc. All Rights Reserved.
  • 31. Grape with Rails 3.x Copyright 2010, Intridea Inc. All Rights Reserved.
  • 32. Any Future Feature? YES! Copyright 2010, Intridea Inc. All Rights Reserved.
  • 33. Near Future *Support for XML formatting *Multiple-file APIs (modularity) *OAuth 1.0a and 2.0 authentication support Filters/Callbacks https://github.com/makandra/modularity http://code.dblock.org/modularizing-a-ror-grape-api Copyright 2010, Intridea Inc. All Rights Reserved.
  • 34. Medium Future YARD extensions for self-documenting APIs Plugin System for easy extension Internal API Access Rate Limiting Lifecycle Automation Copyright 2010, Intridea Inc. All Rights Reserved.
  • 35. Far Future Streaming API support PubSubHubBub Copyright 2010, Intridea Inc. All Rights Reserved.
  • 36. Resources References RubyConf 2010 presentation about Grape. http://confreaks.net/videos/475-rubyconf2010-the- grapes-of-rapid https://github.com/downloads/intridea/grape/The %20Grapes%20of%20Rapid.pdf Example Rails implementation http://martinciu.com/2011/01/mounting-grape-api- inside-rails-application.html Copyright 2010, Intridea Inc. All Rights Reserved.
  • 37. Demo Sample Demo API with Sinatra App. https://github.com/mbleigh/conf_ask http://www.arailsdemo.com/posts/30 Well Documented Sample API. https://gist.github.com/892282 Copyright 2010, Intridea Inc. All Rights Reserved.
  • 38. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 39. Thank You! Copyright 2010, Intridea Inc. All Rights Reserved.

×