Skip to content

Instantly share code, notes, and snippets.

@kazuph kazuph/api.rb
Created Jan 28, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.