Restful API On Grape

  • 1,031 views
Uploaded on

a topic I shared in Xi'an OpenParty 2013/07/27

a topic I shared in Xi'an OpenParty 2013/07/27

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,031
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
14
Comments
0
Likes
3

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. Copyright 2010, Intridea Inc. All Rights Reserved. RESTful API On Grape andy@intridea.com 2013/07/27 @XianOpenParty
  • 2. Copyright 2010, Intridea Inc. All Rights Reserved. Introduction 王要弟 == Andy Wang WangYaodi.com Senior Ruby/Rails Enginner @intridea Weibo/Twitter/Github/RubyChina: @yorzi
  • 3. Copyright 2010, Intridea Inc. All Rights Reserved. What’s Grape?
  • 4. Copyright 2010, Intridea Inc. All Rights Reserved. Generalized Rapid APIs Erector https://github.com/intridea/grape/blob/master/README.md
  • 5. Copyright 2010, Intridea Inc. All Rights Reserved. “An opinionated micro-framework for creating RESTful APIs in Ruby”
  • 6. Copyright 2010, Intridea Inc. All Rights Reserved. REpresentational State Transfer http://www.ruanyifeng.com/blog/2011/09/restful.html
  • 7. Copyright 2010, Intridea Inc. All Rights Reserved. Grape APIs are Rack applications
  • 8. Copyright 2010, Intridea Inc. All Rights Reserved. http://guides.rubyonrails.org/rails_on_rack.html
  • 9. Copyright 2010, Intridea Inc. All Rights Reserved. Basic API
  • 10. Copyright 2010, Intridea Inc. All Rights Reserved.
  • 11. Copyright 2010, Intridea Inc. All Rights Reserved. Add Prefix
  • 12. Copyright 2010, Intridea Inc. All Rights Reserved. Add Namespace
  • 13. Copyright 2010, Intridea Inc. All Rights Reserved. Add Version
  • 14. Copyright 2010, Intridea Inc. All Rights Reserved. Authentication
  • 15. Copyright 2010, Intridea Inc. All Rights Reserved. Use Helpers
  • 16. Copyright 2010, Intridea Inc. All Rights Reserved. Raise Error
  • 17. Copyright 2010, Intridea Inc. All Rights Reserved. Exception Handling
  • 18. Copyright 2010, Intridea Inc. All Rights Reserved. JSONP & CORS
  • 19. Copyright 2010, Intridea Inc. All Rights Reserved. Rabl Template
  • 20. Copyright 2010, Intridea Inc. All Rights Reserved. Cookies
  • 21. Copyright 2010, Intridea Inc. All Rights Reserved. Redirecting
  • 22. Copyright 2010, Intridea Inc. All Rights Reserved. Logging
  • 23. Copyright 2010, Intridea Inc. All Rights Reserved. https://github.com/intridea/grape/blob/master/README.md More Features
  • 24. Copyright 2010, Intridea Inc. All Rights Reserved. Run Rack App
  • 25. Copyright 2010, Intridea Inc. All Rights Reserved. Work with Rails
  • 26. Copyright 2010, Intridea Inc. All Rights Reserved. Resources https://github.com/intridea/grape/wiki
  • 27. Copyright 2010, Intridea Inc. All Rights Reserved. Question?
  • 28. Copyright 2010, Intridea Inc. All Rights Reserved. Thank You!