Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

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: 'Total'}  
}

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