8000 GitHub - rccgroup/acts-as-doc: Add swagger comment to any ruby file for generating swagger response doc struct
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rccgroup/acts-as-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acts-as-doc

Add swagger comment to any ruby file for generating swagger response doc struct

Install

Add this line to your application's Gemfile:

gem 'acts_as_doc', '~> 1.0'

Usage

class A
  extend ActsAsDoc::Schema

  # @prop [integer] :total Total
end

A.swagger_schema
# => 
{
  'total' => {type: 'integer', description: 'T
5BE2
otal'}  
}

Test

Run Test Unit

rake test

About

Add swagger comment to any ruby file for generating swagger response doc struct

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0