EchoServiceParameters
Class: EchoServiceParameters
Defined in: packages/runtime/src/services/echo.service.ts:6
Configuration for EchoService — static content served on a fixed route
Extends
ServiceParameters
Constructors
Constructor
new EchoServiceParameters():
EchoServiceParameters
Returns
EchoServiceParameters
Inherited from
ServiceParameters.constructor
Properties
mime?
optionalmime?:string
Defined in: packages/runtime/src/services/echo.service.ts:10
Mime of the result
result
result:
any
Defined in: packages/runtime/src/services/echo.service.ts:14
result to write on the url
type
type:
string
Defined in: packages/core/lib/services/serviceparameters.d.ts:8
Type of the service
Inherited from
ServiceParameters.type
url
url:
string
Defined in: packages/runtime/src/services/echo.service.ts:18
Url to expose the service
Methods
load()
load(
params?):this
Defined in: packages/core/lib/services/serviceparameters.d.ts:18
Load raw parameters by assigning them onto this instance
Parameters
params?
any
the service parameters
Returns
this
this for chaining
Inherited from
ServiceParameters.load
update()
update(
params,delta):this
Defined in: packages/core/lib/services/serviceparameters.d.ts:25
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
ServiceParameters.update
with()
with(
callback):this
Defined in: packages/core/lib/services/serviceparameters.d.ts:31
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
ServiceParameters.with