Hierarchy
- Service
Properties
Readonly code
Unique name of the service.
Methods
fetch
-
Execute a request.
Parameters
-
url: string
Relative link for a service request.
-
Optional options: FetchRequest
Standard request object FetchRequest.
Returns Promise<FetchResponse>
-
status
-
Get information about the status of the service.
Returns Promise<ServiceStatusInfo>
Object of a portable service in a module
This object is used to execute queries to the service. Tis can be done with the Service.fetch method. Example of a query:
await Namespace.services.myService.fetch('/MyServiceMethod')
[[Service. status]] returns information about the service’s status. Example of getting a status:
const serviceStatusInfo = await Namespace.services. myService.status(); if (serviceStatusInfo.status == ServiceStatus.Ready) { // Service interaction logic }