Class: Iron::Api::OpenapiController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/iron/api/openapi_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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