Module: ConvenientService::Service::Configs::Minimal
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/configs/minimal.rb
Overview
Note:
This config is NOT intented for the end-user usage. Use Standard instead.
Note:
‘use ConvenientService::Plugins::Common::NormalizesEnv::Middleware` should be used in a config that has the first concern that introduces a method. For example, :result is added by `use ConvenientService::Plugins::Service::HasJSendResult::Concern` in Minimal. That is why the following code is written in the Minimal config.
middlewares :result do
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
# ...
end
In turn, :fallback_result is added by ‘use ConvenientService::Plugins::Service::CanHaveFallbacks::Concern` in Standard. That is why it is the responsibility of the Standard config, to define:
middlewares :fallback_result do
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
# ...
end
Defines minimal configuration that adds a constructor, JSend-inspired result, steps, basic inspects, and internals to services.