mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
More readme typo fixes
This commit is contained in:
parent
0a3c7abc51
commit
06ec343c89
@ -74,9 +74,9 @@ There's two separate parts to swagger rails:
|
|||||||
1. Tooling to easily generate swagger descriptions directly from your API tests/specs
|
1. Tooling to easily generate swagger descriptions directly from your API tests/specs
|
||||||
2. Rails middleware to auto-magically serve a swagger-ui that's powered by those descriptions
|
2. Rails middleware to auto-magically serve a swagger-ui that's powered by those descriptions
|
||||||
|
|
||||||
The tooling is designed to fit seamlessly into your development workflow, with the swagger docs and UI being a by-product that you get for free ... well almost free :) You'll need to use the provided rspec DSL, but it's an intuitive syntax (based on the swagger-spec) and, IMO, a very succint and expressive way to write api/integration tests.
|
The tooling is designed to fit seamlessly into your development workflow, with the swagger docs and UI being a by-product that you get for free ... well almost free :) You'll need to use the provided rspec DSL. But, it's an intuitive syntax (based on the [swagger-spec](http://swagger.io/specification/)) and, IMO, a very succint and expressive way to write api/integration tests.
|
||||||
|
|
||||||
Once you've generated the swagger files, the functionality to serve up them up, along with the swagger-ui, is provided as a Rails Engine. After running the install generator, you'll see the following line added to _routes.rb_
|
Once you've generated the swagger files, the functionality to serve them up, along with the swagger-ui, is provided as a Rails Engine. After running the install generator, you'll see the following line added to _routes.rb_
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
mount SwaggerRails::Engine => '/api-docs'
|
mount SwaggerRails::Engine => '/api-docs'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user