Skip to content

Commit 015797f

Browse files
committed
Added ![swagger_screencapture](/localhost-3000-api-docs-index-html.png)
1 parent 37730b8 commit 015797f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,14 @@ https://rubyinrails.com/2018/11/10/rails-building-json-api-resopnses-with-jbuild
123123
7. [Unit Testing with Rspec](/unit_testing_with_rspec.md)
124124

125125
8. rswag
126-
1. Generate documentation
126+
127+
1. testing
128+
129+
``` bundle exec rspec spec/requests/users_spec.rb --format documentation ```
130+
2. Generate documentation
127131

128132
> this command ```rake rswag ``` will generate swag documentation. then you can connect to ``` http://localhost:3000/api-docs/index.html ```
133+
134+
![swagger_screencapture](/localhost-3000-api-docs-index-html.png)
129135

130-
2. testing
131-
132-
``` bundle exec rspec spec/requests/users_spec.rb --format documentation ```
136+
635 KB
Loading

0 commit comments

Comments
 (0)