詳細情報:
DatasourceRest Lightning Web コンポーネント ReadMe (管理パッケージ)
管理パッケージランタイムの場合、このページには各 Vlocity リリースの DatasourceRest LWC ReadMe が含まれます。
この情報は、OmniStudio for Managed Packages 用です。標準ランタイムの OmniStudio については、OmniStudio ヘルプを参照してください。
Vlocity Insurance and Health Winter '20 および Vlocity CME Spring '20
DatasourceRest Lightning Web コンポーネントは、REST Web データソースから取得されるデータ用の追加機能で Datasource Lightning Web コンポーネントを拡張します。
使用可能な c-datasource-rest 属性
属性 |
値 |
型 |
必須 |
説明 |
|---|---|---|---|---|
methodtype |
GET、POST (デフォルト: GET) |
string |
はい |
要求メソッド種別を指定します。 |
subtype |
web、指定ログイン情報 (デフォルト: web) |
string |
はい |
休憩の種別を指定します。 |
headers |
JSON |
string |
要求と一緒に送信されるヘッダーを提供します。 |
|
payload |
string |
要求と共に送信されるデータを提供します。 |
||
エンドポイント |
string |
はい |
REST URL を指定します。 |
|
namedcredential |
string |
subtype が namedcredential の場合、組織からの指定ログイン情報を指定します。 |
c-datasource-rest コンポーネントの例
<!--headers = { "Content-Type": "application/json", "accept": "application/json" } -->
<c-datasource-rest
theme="slds"
methodtype="GET"
subtype="web"
headers="{headers}"
channel="restweb"
endpoint="https://jsonplaceholder.typicode.com/users"
debug="true"
></c-datasource-rest>
<c-datasource-rest
theme="slds"
methodtype="GET"
subtype="namedcredential"
channel="restnamed"
namedcredential="test"
headers="{headers}"
endpoint="posts"
debug="true"
></c-datasource-rest>Vlocity Insurance and Health Summer '19 および Vlocity CME Fall '19
DatasourceRest Lightning Web コンポーネントは、REST Web データソースから取得されるデータ用の追加機能で Datasource Lightning Web コンポーネントを拡張します。
使用可能な c-datasource-rest 属性
属性 |
値 |
型 |
必須 |
説明 |
|---|---|---|---|---|
methodtype |
GET、POST (デフォルト: GET) |
string |
はい |
要求メソッド種別を指定します。 |
subtype |
web、指定ログイン情報 (デフォルト: web) |
string |
はい |
休憩の種別を指定します。 |
headers |
JSON |
string |
要求と一緒に送信されるヘッダーを提供します。 |
|
payload |
string |
要求と共に送信されるデータを提供します。 |
||
エンドポイント |
string |
はい |
REST URL を指定します。 |
|
namedcredential |
string |
subtype が namedcredential の場合、組織からの指定ログイン情報を指定します。 |
c-datasource-rest コンポーネントの例
<!--headers == { "Content-Type": "application/json", "accept": "application/json" } -->
<c-datasource-rest
theme="slds"
methodtype="GET"
subtype="web"
headers="{headers}"
channel="restweb"
endpoint="https://jsonplaceholder.typicode.com/users"
debug="true"
></c-datasource-rest>
<c-datasource-rest
theme="slds"
methodtype="GET"
subtype="namedcredential"
channel="restnamed"
namedcredential="test"
headers="{headers}"
endpoint="posts"
debug="true"
></c-datasource-rest>
