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 }
Unique name of the service.
Execute a request.
Get information about the status of the service.
Your review is successfully sent!
Feedback sent successfully
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 }Hierarchy
Properties
Readonly code
Unique name of the service.
Methods
fetch
Execute a request.
Parameters
url: string
Optional options: FetchRequest
Returns Promise<FetchResponse>
status
Get information about the status of the service.
Returns Promise<ServiceStatusInfo>