Module: AnotherApi::OpenAPI

Defined in:
lib/another_api/openapi.rb,
lib/another_api/openapi/generator.rb,
lib/another_api/openapi/type_mapper.rb,
lib/another_api/openapi/path_builder.rb,
lib/another_api/openapi/configuration.rb,
lib/another_api/openapi/spec_renderer.rb,
lib/another_api/openapi/common_schemas.rb,
lib/another_api/openapi/schema_builder.rb,
lib/another_api/openapi/endpoint_metadata.rb,
lib/another_api/openapi/endpoint_registry.rb

Defined Under Namespace

Modules: CommonSchemas, EndpointMetadata Classes: Configuration, EndpointRegistry, Generator, PathBuilder, SchemaBuilder, SpecRenderer, TypeMapper

Class Method Summary collapse

Class Method Details

.configurationObject



66
67
68
# File 'lib/another_api/openapi/configuration.rb', line 66

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



70
71
72
# File 'lib/another_api/openapi/configuration.rb', line 70

def configure
  yield(configuration)
end

.reset_configuration!Object



74
75
76
# File 'lib/another_api/openapi/configuration.rb', line 74

def reset_configuration!
  @configuration = Configuration.new
end