DatasourceApexRest Lightning Web Component ReadMe (Managed Package)

For the managed package runtime, this page contains a DatasourceApexRest LWC ReadMe for each Vlocity release.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20

The DatasourceApexrest Lightning Web Component extends the Datasource Lightning Web Component with additional features for fetching data using an Apex class from a REST endpoint.

Available c-datasource-apexrest Attributes

Attribute

Value

Type

Required

Description

endpoint

 

string

yes

Provides the Apex rest endpoint.

methodType

 

string

yes

Provides the Apex rest method type. For eg: GET, POST.

payload

 

string

no

Provides the payload data to pass as a parameter. Only applicable if methodType is not GET

Example c-datasource-apexrest

<c-datasource-apexrest 
  endpoint="/services/apexrest/vlocity_ins/v1/mockapexrest" 
  method-type="GET" 
  channel="apexrest"
  debug="true">
</c-datasource-apexrest>

Vlocity Insurance and Health Summer '19 and Vlocity CME Fall '19

The DatasourceApexrest Lightning Web Component extends the Datasource Lightning Web Component with additional features for fetching data using an Apex class from a REST endpoint.

Available c-datasource-apexrest Attributes

Attribute

Value

Type

Required

Description

endpoint

 

string

yes

Provides the Apex rest endpoint.

methodType

 

string

yes

Provides the Apex rest method type. For eg: GET, POST.

payload

 

string

no

Provides the payload data to pass as a parameter. Only applicable if methodType is not GET

Example c-datasource-apexrest

<c-datasource-apexrest
  endpoint="/services/apexrest/vlocity_ins/v1/mockapexrest"
  method-type="GET"
  channel="apexrest"
  debug="true">
</c-datasource-apexrest>