---
title: "rest:client — RESTful client"
description: "iXML command rest:client: RESTful client."
canonical_url: "https://www.zeyos.com/ixml/ref/rest-client"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/rest-client.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# rest:client — RESTful client

REST:CLIENT defines a set of dynamically bound RESTful resources based on HTTP/1.1.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| url | string |  | URL |
| timeout | int | 60 | Timeout in seconds |
| validate | bool |  | Validate SSL |

### Children
- rest:header (occurrence: single) — REST header

### Parents
- (not restricted in the reference)

### Result
- (none documented)

### Examples

```xml
<rest:client url="https://api.predic8.de/shop/v2">
	<rest:header>
		Content-Type: application/json
	</rest:header>

	<rest:bind var="createProduct" method="POST">/products/</rest:bind>
	<rest:bind var="updateProduct" method="PATCH">/products/:id</rest:bind>
	<rest:bind var="getProduct" method="GET">/products/:id</rest:bind>
</rest:client>

<call func="createProduct" var="data">
	<param>{"name": "Some Fruit", "price": 4.99}</param>
</call>

<call func="updateProduct">
	<param var="data.id"/>
	<param>{"name": "Wildberries"}</param>
</call>

<call func="getProduct" var="data">
	<param var="data.id"/>
</call>

<output>$data.name</output>

<!-- Wildberries -->
```
