Created
January 28, 2014 13:44
-
-
Save kazuph/8667903 to your computer and use it in GitHub Desktop.
grape-swaggerでgrapeでつくったAPIのドキュメントを自動生成する ref: http://qiita.com/kazuph/items/7a63d1cf22f2c6ab509d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Documentation | |
gem 'grape-swagger' | |
gem 'grape-swagger-ui' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle install | |
rails s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment