Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

sponomarev/swarker

Repository files navigation

Swarker Build Status Gem Version Code Climate

Converts lurker schemas to swagger schema

Thanks

Sponsored by Evil Martians

Installation

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

Usage

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

Development

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sponomarev/swarker.

License

The gem is available as open source under the terms of the MIT License.

About

Converts lurker schemas to swagger schema

Resources

License

Stars

Watchers

Forks

Packages

No packages published