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
35
35
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin Ajax possible
36
36
# gem "rack-cors"
37
37
gem "committee"
38
+ gem "scalar_ruby" , "~> 1.1"
38
39
39
40
group :development , :test do
40
41
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
Original file line number Diff line number Diff line change 249
249
rubocop-performance (>= 1.24 )
250
250
rubocop-rails (>= 2.30 )
251
251
ruby-progressbar (1.13.0 )
252
+ scalar_ruby (1.1.0 )
252
253
securerandom (0.4.1 )
253
254
solid_cable (3.0.7 )
254
255
actioncable (>= 7.2 )
@@ -309,6 +310,7 @@ DEPENDENCIES
309
310
puma (>= 5.0 )
310
311
rails (~> 8.0.2 )
311
312
rubocop-rails-omakase
313
+ scalar_ruby (~> 1.1 )
312
314
solid_cable
313
315
solid_cache
314
316
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 1
1
Rails . application . routes . draw do
2
+ mount Scalar ::UI , at : "/docs"
2
3
resources :comments
3
4
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
4
5
You can’t perform that action at this time.
0 commit comments