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.
REST: Schema
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.
Schema settings:
REST: Route
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.
REST: Middleware
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 delay
:
REST: Proxy
Next great component is REST Proxy which creates a proxy between your local API and external service.
REST: Operation
This component can create a new Total.js Operation in the Flow directly. Then you can use this operation in REST ExecOperation component.
Another components
REST: Exec Operation
Executes an existing Total.js Operation.
REST: CORS
Enables CORS for your endpoint.
REST: Interpreter
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
- 2024-11-13Benchmarking Node.js Frameworks: selecting your framework for 2025!
- 2024-11-01October report 2024
- 2024-10-22Performance Testing: Total.js vs. NestJS
- 2024-10-01September report 2024
- 2024-09-27Total.js UI Builder: #2 designing your first interface
- 2024-09-26Total.js V5: Middlewares
- 2024-09-23Beginner Guide to Total.js UI: # 05 Client-side routing
- 2024-09-23Total.js UI #4: Data Binding (Part 2 – Practical Example)
- 2024-09-20Introduction to Total.js UI Builder: A Beginner’s Guide
- 2024-09-13Total.js v5: #06 Understanding File Routing