diff --git a/README.md b/README.md index 12c27b1..a39bb68 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ Once you have an API that can describe itself in Swagger, you've opened the trea rake rswag:specs:swaggerize ``` + This common command is also aliased as `rake rswag`. + 5. Spin up your app and check out the awesome, auto-generated docs at _/api-docs_! ## The rspec DSL ## diff --git a/rswag-specs/lib/tasks/rswag-specs_tasks.rake b/rswag-specs/lib/tasks/rswag-specs_tasks.rake index adc128c..b7d276b 100644 --- a/rswag-specs/lib/tasks/rswag-specs_tasks.rake +++ b/rswag-specs/lib/tasks/rswag-specs_tasks.rake @@ -16,3 +16,6 @@ namespace :rswag do end end end + +task :rswag => ['rswag:specs:swaggerize'] +