Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect Node-RED API #35

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jolt-ai-usejolt-ai[bot]
Copy link

Connect Node-RED API integration
View on Jolt ⚡️

Description:
Implement the following task in the README.md:

IR-01: Establish API communication for flow management.  
Objective: Enable communication between the frontend client and the Node-RED backend for flow management.  
Technical Requirements: Design and implement a service layer in the frontend that communicates with Node-RED's backend APIs.  

The API we're trying to connect to is Node_RED's API, it has a /flows endpoint that accepts GET and POST requests. It has a single property called flows which contains all the flows for our project. See packages/node-red-data/flows.json for an example of what the value of this flows property is.

Whenever the flow in our client is updated, send a request to the /flows endpoint to update the flows there as well.

Logic for translating between Node-RED and our data format should go into a new logic file called packages/flow-client/src/app/redux/modules/flow/red.logic.ts

The actual requests should get triggered in a redux middleware using RTK's createListenerMiddleware(), whenever our flows get updated, dispatch a POST to the API.

jolt-ai-bot and others added 4 commits December 15, 2024 16:39
Connect Node-RED API integration (https://app.usejolt.ai/tasks/cb7585af-e17d-46cc-897f-e9f811b38561)

Description:
Implement the following task in the README.md:

```
IR-01: Establish API communication for flow management.
Objective: Enable communication between the frontend client and the Node-RED backend for flow management.
Technical Requirements: Design and implement a service layer in the frontend that communicates with Node-RED's backend APIs.
```

The API we're trying to connect to is Node\_RED's API, it has a `/flows` endpoint that accepts GET and POST requests. It has a single property called `flows` which contains all the flows for our project. See `packages/node-red-data/flows.json` for an example of what the value of this flows property is.

Whenever the flow in our client is updated, send a request to the `/flows` endpoint to update the flows there as well.

Logic for translating between Node-RED and our data format should go into a new logic file called packages/flow-client/src/app/redux/modules/flow/red.logic.ts

The actual requests should get triggered in a redux middleware using RTK's `createListenerMiddleware()`, whenever our flows get updated, dispatch a POST to the API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants