Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
grape-swaggerでgrapeでつくったAPIのドキュメントを自動生成する ref:
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'
* _Will go to Heaven:_ Probably
* _Will go to Hell:_ Probably not
# 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.