Module: Grape::DSL::Callbacks
- Extended by:
- ActiveSupport::Concern
- Includes:
- Configuration
- Included in:
- API
- Defined in:
- lib/grape/dsl/callbacks.rb
Overview
Blocks can be executed before or after every API call, using before
, after
,
before_validation
and after_validation
.
Before and after callbacks execute in the following order:
before
before_validation
- validations
after_validation
- the API call
after
Steps 4, 5 and 6 only happen if validation succeeds.
Defined Under Namespace
Modules: ClassMethods