Converts lurker schemas to swagger schema
Add this line to your application's Gemfile:
group :development do
gem 'swarker', require: false
end
And then execute:
$ bundle
Or install it yourself as:
$ gem install swarker
To convert you lurker schemas just run swarker convert
. By default it expects to find schemas in lurker
directory
and store swagger schema to public
:
$ swarker convert
You can easily define input and output directory for your choice:
$ swarker convert -i lurker_path -o output_path
Also you can filter lurker endpoints by it's path subtree:
$ swarker convert -s lurker/api/v2
To familiarize with other options just start with:
$ swarker help
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can
also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/sponomarev/swarker.
The gem is available as open source under the terms of the MIT License.