Module: Apicraft

Defined in:
lib/apicraft-rails.rb,
lib/apicraft/web.rb,
lib/apicraft/config.rb,
lib/apicraft/errors.rb,
lib/apicraft/loader.rb,
lib/apicraft/mocker.rb,
lib/apicraft/openapi.rb,
lib/apicraft/railtie.rb,
lib/apicraft/version.rb,
lib/apicraft/web/app.rb,
lib/apicraft/concerns.rb,
lib/apicraft/constants.rb,
lib/apicraft/web/router.rb,
lib/apicraft/middlewares.rb,
lib/apicraft/mocker/base.rb,
lib/apicraft/web/actions.rb,
lib/apicraft/mocker/array.rb,
lib/apicraft/mocker/all_of.rb,
lib/apicraft/mocker/any_of.rb,
lib/apicraft/mocker/number.rb,
lib/apicraft/mocker/object.rb,
lib/apicraft/mocker/one_of.rb,
lib/apicraft/mocker/string.rb,
lib/apicraft/mocker/boolean.rb,
lib/apicraft/mocker/integer.rb,
lib/apicraft/openapi/contract.rb,
lib/apicraft/openapi/response.rb,
lib/apicraft/openapi/operation.rb,
lib/apicraft/concerns/cacheable.rb,
lib/apicraft/middlewares/mocker.rb,
lib/apicraft/concerns/middleware_util.rb,
lib/apicraft/middlewares/introspector.rb,
lib/apicraft/middlewares/request_validator.rb

Overview

Current version of Apicraft.

Defined Under Namespace

Modules: Concerns, Constants, Middlewares, Mocker, Openapi, Web Classes: Config, Errors, Loader, Railtie

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.configObject



34
35
36
# File 'lib/apicraft-rails.rb', line 34

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



30
31
32
# File 'lib/apicraft-rails.rb', line 30

def self.configure
  yield(config)
end