Class: Iron::Api::OpenapiController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Iron::Api::OpenapiController
- Defined in:
- app/controllers/iron/api/openapi_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/iron/api/openapi_controller.rb', line 6 def show spec = Rails.cache.fetch(cache_key, expires_in: 1.hour) do OpenapiSpec.new.to_h end render json: spec end |