RESTful API On Grape

RESTful API On Grape

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

0d54cdda4d7657f3d4114b80e185b884?s=128

Andy Wang

July 27, 2013
Tweet

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!