Members
-
request :nlobjRequest
-
Description
The request made to this service
-
response :nlobjResponse
-
Description
the response object to write the data to respond by the call
-
method :String
-
Description
the REST http method currently requested
-
data :any
-
Description
the JSON object in the request body
-
options :ServiceControllerGeneralOptions
-
Description
The options which configure this service controller. If implementer use
common
those options will apply to all request while if they use a particular http method, like for exampleget
, those options will apply only toget
requests. Particular options overridecommon
's -
name :string
-
Description
The name of this model. Is mandatory that al SCEventWrappers to have a name.
Details
Methods
-
sendContent( options, content )
-
Description
Writes the given content in the request object using the right headers, and content type
Parameters
Name Type Description options
ServiceControllerOptions content
String Fires
-
sendError( e )
-
Description
Process given error and then writes it in the http response
Parameters
Name Type Description e
nlobjError | SCError -
get() → {object}
-
Description
Users should implement this method for the service to support the http get operation
Returns
-
post() → {void}
-
Description
Users should implement this method for the service to support the http post operation and use
ServiceController#sendContent to write the response. Requested data is available in
ServiceController#dataReturns
-
put() → {object}
-
Description
Users should implement this method for the service to support the http put operation
Returns
-
delete() → {any}
-
Description
Users should implement this method for the service to support the http delete operation
Returns
-
patch() → {any}
-
Description
Users should implement this method for the service to support the http patch operation
Returns