Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kazuph
Created January 28, 2014 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuph/8667903 to your computer and use it in GitHub Desktop.
Save kazuph/8667903 to your computer and use it in GitHub Desktop.
grape-swaggerでgrapeでつくったAPIのドキュメントを自動生成する ref: http://qiita.com/kazuph/items/7a63d1cf22f2c6ab509d
desc "Reserve a virgin in heaven", {
:notes => <<-NOTE
Virgins in heaven
-----------------
> A virgin doesn't come for free
If you want to reserve a virgin in heaven, you have to do
some crazy stuff on earth.
def do_good
puts 'help people'
end
* _Will go to Heaven:_ Probably
* _Will go to Hell:_ Probably not
NOTE
}
# Documentation
gem 'grape-swagger'
gem 'grape-swagger-ui'
bundle install
rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment