Module: SimpleEndpoint
- Defined in:
- lib/simple_endpoint.rb,
lib/simple_endpoint/errors.rb,
lib/simple_endpoint/version.rb,
lib/simple_endpoint/endpoint.rb,
lib/simple_endpoint/controller.rb,
lib/simple_endpoint/controller/builder.rb,
lib/simple_endpoint/controller/class_methods.rb,
lib/simple_endpoint/endpoint/endpoint_options.rb
Defined Under Namespace
Modules: Controller Classes: Endpoint, OperationIsNotHandled, UnhandledResultError
Constant Summary collapse
- HANDLER_ERROR_MESSAGE =
<<-LARGE_ERROR Please specify handler EXAMPLE: ############################################### # Can be put into ApplicationController and redefined in subclasses class Controller handler on(:<your case name>) { |result, **| <your code goes here> } ... end end ############################################### LARGE_ERROR
- CASES_ERROR_MESSAGE =
<<-LARGE_ERROR Please define cases EXAMPLE: ############################################### # default trailblazer-endpoint logic, you can change it # Can be put into ApplicationController and redefined in subclasses class Controller cases do match(:<your case name>) { |result| <your matching code goes here> } ... end end ############################################### LARGE_ERROR
- VERSION =
'2.0.0'