Я использовал https://github.com/Apipie/apipie-rails
для API документов.
Это работает нормально с rails 4 vestion, после этого я обновил свою версию rails до rails 5.2.3
, и она перестала работать.
# app/controllers/api/v1/items_controller.rb
module Api
module V1
class ItemsController < API::V1::BaseApiController
api :GET, '/items', 'All items'
def index
render json: @items
end
end
end
end
Я получаю такую ошибку
Started GET "/api-doc/1.0/items/index.en.html" for ::1 at 2019-10-16 18:32:08 +0530
Processing by Apipie::ApipiesController#index as HTML
Parameters: {"version"=>"1.0", "resource"=>"items", "method"=>"index.en.html"}
Rendering /Users/sc/.rvm/gems/ruby-2.6.3/gems/apipie-rails-0.5.16/app/views/apipie/apipies/apipie_404.html.erb within layouts/apipie/apipie
Rendered /Users/sc/.rvm/gems/ruby-2.6.3/gems/apipie-rails-0.5.16/app/views/apipie/apipies/apipie_404.html.erb within layouts/apipie/apipie (2.1ms)
Completed 404 Not Found in 659ms (Views: 13.5ms | ActiveRecord: 0.0ms)