0.0
No release in over a year
Add swagger comment to any ruby file for generating swagger response doc struct
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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