mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
All specs are passing in all gems and in test-app Properly generates open api 3 swagger via rake rswag:specs:swaggerize and via bundle exec rspec in test-app dir
15 lines
497 B
Ruby
15 lines
497 B
Ruby
TestApp::Application.routes.draw do
|
|
|
|
post '/blogs/flexible', to: 'blogs#flexible_create'
|
|
post '/blogs/alternate', to: 'blogs#alternate_create'
|
|
resources :blogs
|
|
put '/blogs/:id/upload', to: 'blogs#upload'
|
|
|
|
post 'auth-tests/basic', to: 'auth_tests#basic'
|
|
post 'auth-tests/api-key', to: 'auth_tests#api_key'
|
|
post 'auth-tests/basic-and-api-key', to: 'auth_tests#basic_and_api_key'
|
|
|
|
mount OpenApi::Rswag::Api::Engine => 'api-docs'
|
|
mount OpenApi::Rswag::Ui::Engine => 'api-docs'
|
|
end
|