Flow: REST API components

Mon Jan 22 2018 10:11:14 GMT+0100 (CET), Peter Širka

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 Schema

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 Route

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 Middleware

REST: Proxy

Next great component is REST Proxy which creates a proxy between your local API and external service.

REST Proxy

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.

REST operation

Another components

REST: Exec Operation
Executes an existing Total.js Operation.

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.


Follow us

Latest blogs
Flow v5.0.0
Mon Apr 16 2018 12:32:11 GMT+0200 (CEST)
REST Azure DocumentDB in Node.js / Total.js
Mon Mar 26 2018 09:38:41 GMT+0200 (CEST)
How do I transform ErrorBuilder output?
Mon Jan 29 2018 09:22:49 GMT+0100 (CET)
Flow: REST API components
Mon Jan 22 2018 10:11:14 GMT+0100 (CET)
New Total.js Eshop v11
Fri Jan 19 2018 09:55:09 GMT+0100 (CET)

Latest comments
Sat Mar 24 2018 19:46:54 GMT+0100 (CET)
Tue Mar 20 2018 15:07:31 GMT+0100 (CET)
Is WEBSOCKETCLIENT only for internal ws connections between totaljs apps?
Stelios Stephanua
Fri Mar 16 2018 06:04:22 GMT+0100 (CET)
Total.js is amazing! ;)
Leonardo Hessel
Tue Dec 19 2017 19:51:15 GMT+0100 (CET)
It's easy, just set e.g. `res.status = 404`.
Thu Nov 16 2017 07:54:11 GMT+0100 (CET)
Yes, it's valid.
Thu Nov 16 2017 07:53:06 GMT+0100 (CET)
How do we set the status code in custome middleware?
Mon Oct 02 2017 10:31:40 GMT+0200 (CEST)
Node... Awesome applications.
Thu Aug 31 2017 02:21:59 GMT+0200 (CEST)
Wed May 10 2017 06:33:13 GMT+0200 (CEST)
Awesome, thanks!
Tue May 02 2017 14:13:03 GMT+0200 (CEST)