Communication and Protocols

HTTP/HTTPS

  • Description: the HTTP component enables integration with external services via the HTTP protocol, facilitating the sending and receiving of requests and responses. It supports various HTTP methods such as GET, POST, PUT, and DELETE.

The HTTPS component is a secure version of HTTP, using SSL/TLS to encrypt data transmitted between the client and the server.
  • Example

    • The flow starts by receiving a POST request at the endpoint /hello.

    • Then, the received message is forwarded to a test endpoint.

Script

Diagram

- from:
    uri: "rest:post:/hello"
    steps:
    - to:
        uri: "http://test.free.beeceptor.com"
        parameters:
          bridgeEndpoint: true
          httpMethod: POST
component http

REST

  • Description: The REST component allows creating and managing RESTful endpoints, facilitating communication between applications through the HTTP protocol. It enables defining routes that respond to HTTP requests (such as GET, POST, PUT, and DELETE), processing data, invoking services, and handling information.

  • Example

    • The flow triggers every 5 seconds.

    • It calls an external API using the GET method.

    • It logs the result in the log.

Script

Diagram

- from:
    uri: "timer:mytimer"
    parameters:
      period: 5000
    steps:
      - to:
          uri: "rest:get:/data"
          parameters:
            host: api.example.com
      - to:
          uri: "log:result"
component rest connector
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]