Module: AnotherApi
- Defined in:
- lib/another_api.rb,
lib/another_api/scope.rb,
lib/another_api/engine.rb,
lib/another_api/scopes.rb,
lib/another_api/openapi.rb,
lib/another_api/version.rb,
lib/another_api/paginated.rb,
lib/another_api/serializes.rb,
lib/another_api/configuration.rb,
lib/another_api/authentication.rb,
lib/another_api/error_handling.rb,
lib/another_api/base_controller.rb,
lib/another_api/forbidden_error.rb,
lib/another_api/not_found_error.rb,
lib/another_api/param_sanitizer.rb,
lib/another_api/response_handler.rb,
lib/another_api/token_generation.rb,
lib/another_api/bad_request_error.rb,
lib/another_api/openapi/generator.rb,
lib/another_api/operation_failure.rb,
lib/another_api/api_token_contract.rb,
lib/another_api/param_deserializer.rb,
lib/another_api/filtered_and_sorted.rb,
lib/another_api/openapi/type_mapper.rb,
lib/another_api/schema_configurable.rb,
lib/another_api/unprocessable_error.rb,
lib/another_api/not_acceptable_error.rb,
lib/another_api/openapi/path_builder.rb,
lib/another_api/openapi/configuration.rb,
lib/another_api/openapi/spec_renderer.rb,
lib/another_api/response_has_metadata.rb,
lib/another_api/openapi/common_schemas.rb,
lib/another_api/openapi/schema_builder.rb,
lib/another_api/api_token_scoped_policy.rb,
lib/another_api/openapi/endpoint_metadata.rb,
lib/another_api/openapi/endpoint_registry.rb,
lib/another_api/api_token_ownership_policy.rb
Defined Under Namespace
Modules: ApiTokenContract, Authentication, ErrorHandling, FilteredAndSorted, OpenAPI, Paginated, ParamDeserializer, ParamSanitizer, ResponseHandler, ResponseHasMetadata, SchemaConfigurable, Serializes, TokenGeneration
Classes: ApiTokenOwnershipPolicy, ApiTokenScopedPolicy, BadRequestError, BaseController, Configuration, ConfigurationError, Engine, ForbiddenError, NotAcceptableError, NotFoundError, OperationFailure, Scope, Scopes, UnprocessableError
Constant Summary
collapse
- SCOPE_ACTIONS =
%i[all list show create update delete reject activate deactivate].freeze
- VERSION =
"0.3.1"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
62
63
64
|
# File 'lib/another_api/configuration.rb', line 62
def configuration
@configuration ||= Configuration.new
end
|
66
67
68
|
# File 'lib/another_api/configuration.rb', line 66
def configure
yield(configuration)
end
|
.reset_configuration! ⇒ Object
70
71
72
|
# File 'lib/another_api/configuration.rb', line 70
def reset_configuration!
@configuration = Configuration.new
end
|