Service: Flow

This API is not yet officially released neither maintained.

Service to store and control Blickfeld flows.

It is used to implement the custom storage API: https://nodered.org/docs/api/storage/

Table 1. Available methods
Method Request Response

Get

FlowGetRequest

FlowGetResponse

List

google.protobuf.Empty

FlowListResponse

Store

FlowStoreRequest

google.protobuf.Empty

Delete

FlowDeleteRequest

google.protobuf.Empty

StoreGlobalNodes

FlowStoreGlobalNodesRequest

google.protobuf.Empty

GetGlobalNodes

google.protobuf.Empty

FlowGetGlobalNodesResponse

Get

Get a flow by id

Request

Flow get request

Table 2. Available fields in blickfeld.flow.services.FlowGetRequest
Field Type Default Unit

id

string

-

-

Flow id

as_node_red_json

bool

-

-

If true, the request returns the NodeRed JSON format which can be directly imported.

Response

Flow get response

Table 3. Available fields in blickfeld.flow.services.FlowGetResponse
Field Type Default Unit

flow

config.Flow

-

-

Blickfeld Flow config with well-defined high-level attributes

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format which can be directly imported

List

Return list of flow ids

Response

Flow list response

Table 4. Available fields in blickfeld.flow.services.FlowListResponse
Field Type Default Unit

ids

repeated string

-

-

List of Blickfeld Flow identifiers.

Store

Store flow

Request

Flow store request

Table 5. Available fields in blickfeld.flow.services.FlowStoreRequest
Field Type Default Unit

id

string

-

-

ID of the flow

NOTE: For node_red_json, this has to match the ID in the NodeRED JSON format.

flow

config.Flow

-

-

Blickfeld Flow config with well-defined high-level attributes

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format which can be directly exported from NodeRED Admin UI

Delete

Delete stored flow

Request

Flow delete request

Table 6. Available fields in blickfeld.flow.services.FlowDeleteRequest
Field Type Default Unit

id

string

-

-

Id of Blickfeld Flow

StoreGlobalNodes

Store global nodes

Request

Flow store global nodes request

Table 7. Available fields in blickfeld.flow.services.FlowStoreGlobalNodesRequest
Field Type Default Unit

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format of all global configuration nodes

GetGlobalNodes

Get global nodes

Response

Flow get global nodes response

Table 8. Available fields in blickfeld.flow.services.FlowGetGlobalNodesResponse
Field Type Default Unit

node_red_json

config.NodeRedJson

-

-

NodeRed JSON format of all global configuration nodes