Class: RazorRisk::Cassini::Applications::RouteVerbAdaptors::Capabilities::CreateNewUser
- Inherits:
-
RESTFramework::VerbHandler
- Object
- RESTFramework::VerbHandler
- RazorRisk::Cassini::Applications::RouteVerbAdaptors::Capabilities::CreateNewUser
- Includes:
- GetHandlerMixin
- Defined in:
- lib/razor_risk/cassini/applications/route_verb_adaptors/capabilities/create_user.rb
Overview
########################################################################## AddUser
Constant Summary collapse
- ROUTE_VARIABLES =
%w[ userId type role name ]
Constants included from GetHandlerMixin
GetHandlerMixin::ErrorHeaders, GetHandlerMixin::HTTP_ACCEPTS, GetHandlerMixin::HTTP_VERB, GetHandlerMixin::QUERY_PARAMETERS
Instance Method Summary collapse
Instance Method Details
#handle(env, params, request, response) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/razor_risk/cassini/applications/route_verb_adaptors/capabilities/create_user.rb', line 40 def handle(env, params, request, response) trace ParamNames[:env, :params, :request, :response], env, params, request, response userId = params['userId'] type = params['type'] name = params['name'] role = params['role'] super do |ec| ec.create_user userId,name,role,type, indicate_result_by: :qualified_result end end |