Example 1 - Node with Transaction Mode (HTTP)

This example demonstrates a basic FlowSync configuration using an HTTP node. The service is configured to use transaction mode. Since no MQTT messages are published to the /tres topic in this setup, requests will time out after the default timeout period.

  • To call the HttpNode in the example below, run the following command:

curl --insecure \
--location 'https://127.0.0.1/data/flowsync/example1' \
--header 'Authorization: Bearer <replace with your token>'

For more information on the FlowSync configuration properties, see Cybus:Node.

flowsync-example-1-node-with-transaction-mode-http.yaml
description: FlowSync - Example 1

metadata:
  name: example 1
  version: 1.0.0

resources:
  testServer:
    type: Cybus::Server::Http
    properties:
      basePath: /FlowSync

  exampleNode:
    type: Cybus::Node::Http
    properties:
      parent: !ref testServer
      method: GET
      route: /example1
      operation: transaction

Last updated

Was this helpful?