Total.js Flow is a really great visual programming interface for everything. Now it contains components for creating REST API.
New Flow REST API components
I have created a new components for creating REST API. Just open Components section and install REST components. IMPORTANT REST components can process JSON only on input, output can be anything.
This component can create a new Total.js Schema. Just type your schema declaration and join with REST: Route component. You can create unlimited count of workflows, transformations or CRUD operations directly without re-compilation of your source-code.
The component registers a new Total.js route in the background. You can choose middleware, schema and its operations + you can define a response. A great feature is response caching and duration measuring of request processing.
This component can create a middleware in the Flow directly. Then you can use this middleware in your REST Route component. For example a simple middleware
Next great component is REST Proxy which creates a proxy between your local API and external service.
This component can create a new Total.js Operation in the Flow directly. Then you can use this operation in REST ExecOperation component.
REST: Exec Operation
Executes an existing Total.js Operation.
Enables CORS for your endpoint.
This component can receive a data from code directly. It registers a global method
INTERPRET(channel, data) and you can execute this method from the code. The component can be helpful for getting states of some processes.
Other posts from Total.js Platform
- 2021-10-08Server-Sent events with Total.js
- 2021-10-01September report 2021
- 2021-09-16Custom FlowStream execution
- 2021-09-14Improved FlowStream components
- 2021-09-10Processing live video stream in Total.js / Node.js
- 2021-09-08New release for Total.js v4 with great new improvements
- 2021-09-02August report 2021
- 2021-08-11MJPEG streaming through HTTP in Node.js / Total.js
- 2021-08-02Total.js FlowStream Designer is now open-source
- 2021-07-31July report 2021