0.0.6 • Published 8 years ago

sf_apidoc v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

sf_apidoc_usage

##Installation npm install sf_apidoc -g

##Example

=begin
@api {get} /user/:id Request User information
@apiParamExample {json} Request-Example:
file: test.json
=end
  • Then you must puth the test.json into test/fixtures dir, otherwise sf_apidoc can not find it.

##Enhanced Commands

Below commands will support File when using sf_apidoc
  • @apiSuccessExample
  • @apiErrorExample
  • @apiHeaderExample
  • @apiExample
  • @apiParamExample

##Generate API doc

  • Add below rake take into you Rails application
task :generate_apidoc do
    system "sf_apidoc -i . -o apidoc"
end

Then you can run bundle exec rake generate_apidoc to generate you api documentation.

##More usage details please refer to apiDoc