<msm:rest> calls an external HTTP endpoint (GET/POST) and renders the response using templates.
SSR components
msm:rest
Call an HTTP endpoint and render the response
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Call an HTTP endpoint and render the response
<msm:rest> calls an external HTTP endpoint (GET/POST) and renders the response using templates.
<msm:rest id="remote" endpoint="https://api.example.com/items" method="GET" item-name="r">
<msm:template>
<div>${r|value}</div>
</msm:template>
<msm:empty>
<div>No data</div>
</msm:empty>
</msm:rest>
| Attribute | Meaning |
|---|---|
endpoint | HTTP URL to call. |
method | GET or POST. |
request | JSON request payload (for POST) or params (depending on setup). |
header / footer | Optional JSON for extra rendering sections. |
item-name | Prefix used inside templates. |