File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ gem "thruster", require: false
3535# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin Ajax possible
3636# gem "rack-cors"
3737gem "committee"
38+ gem "scalar_ruby" , "~> 1.1"
3839
3940group :development , :test do
4041 # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
Original file line number Diff line number Diff line change 249249 rubocop-performance (>= 1.24 )
250250 rubocop-rails (>= 2.30 )
251251 ruby-progressbar (1.13.0 )
252+ scalar_ruby (1.1.0 )
252253 securerandom (0.4.1 )
253254 solid_cable (3.0.7 )
254255 actioncable (>= 7.2 )
@@ -309,6 +310,7 @@ DEPENDENCIES
309310 puma (>= 5.0 )
310311 rails (~> 8.0.2 )
311312 rubocop-rails-omakase
313+ scalar_ruby (~> 1.1 )
312314 solid_cable
313315 solid_cache
314316 solid_queue
Original file line number Diff line number Diff line change 1+ # config/initializers/scalar.rb
2+
3+ Scalar . setup do |config |
4+ config . specification = File . read ( Rails . root . join ( "docs/openapi.json" ) )
5+ end
Original file line number Diff line number Diff line change 11Rails . application . routes . draw do
2+ mount Scalar ::UI , at : "/docs"
23 resources :comments
34 # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
45
You can’t perform that action at this time.
0 commit comments