complete API swagger documentation
This commit is contained in:
+4
-3
@@ -1,6 +1,10 @@
|
||||
Rails.application.routes.draw do
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
|
||||
mount Api::Base => "/api"
|
||||
get "/api/swagger", to: "api/swagger#index"
|
||||
mount Rswag::Ui::Engine => "/api"
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
get "up" => "rails/health#show", as: :rails_health_check
|
||||
@@ -51,9 +55,6 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
mount Api::Base => "/api"
|
||||
mount Rswag::Ui::Engine => "/api"
|
||||
|
||||
resources :entries do
|
||||
resources :comments, only: [ :create ]
|
||||
collection do
|
||||
|
||||
Reference in New Issue
Block a user