---
title: c REST
description: Available connectors
documentId: ipaas-rest
locale: en-US
---

The [**REST**](https://camel.apache.org/components/4.10.x/rest-component.html) component allows you to create and manage RESTful endpoints, facilitating communication between applications through the HTTP protocol. It enables the definition of routes that respond to HTTP requests (such as `GET`, `POST`, `PUT`, and `DELETE`), processing data, invoking services, and handling information.

**URI Syntax**: `rest:method:path:uriTemplate`

## Main fields

*Path parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
| `method` (common) | (required) HTTP method to be used. Possible values: `get`, `post`, `put`, `delete`, `patch`, `head`, `trace`, `connect`, `options`. | — | String |
| `path` (common)   | (required) Base path. Can use `*` as a suffix to allow wildcard HTTP route matching. | — | String |
| `uriTemplate` (common) | The URI template. | — | String |

*Query parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
|`host` (producer) | Host and port of the HTTP service to be used (overrides the host defined in the Swagger schema).| — | String |

## Example

<Steps>
  <Step>
   The flow triggers every 5 seconds.
  </Step>
  <Step>
   Calls an external API with the GET method.
  </Step>
  <Step>
   Logs the result.
  </Step>
</Steps>

````yaml
- from:
    uri: "timer:mytimer"
    parameters:
      period: 5000
    steps:
      - to:
          uri: "rest:get:/data"
          parameters:
            host: api.example.com
      - to:
          uri: "log:result"
````

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/component_rest_connector_7c76894ef2.png)
