danielduarte / flowed

A fast and reliable flow engine for orchestration and more uses in Node.js, Deno and the browser
https://danielduarte.github.io/flowed
MIT License
151 stars 21 forks source link

Built-in resolver to call Rest API #11

Closed daniel-duarte closed 4 years ago

daniel-duarte commented 5 years ago

Provide a built-in resolver to call a rest API.

danielduarte commented 4 years ago

Provided as Flowed plugins:

Usage (example in TypeScript):

import { FlowedPlugin } from 'flowed';
import FlowedOpenApi from 'flowed-openapi';

FlowManager.installPlugin(FlowedOpenApi as FlowedPlugin);

// All set to use the resolver name "flowed::OpenApi"!

It is pretty similar to integrate flowed-http.

Note that this solution is not included as a part of the package flowed to preserve it as light as possible for those that does not need the HTTP feature. But as shown above, it is super easy to install and use.