tenzir / public-roadmap

The public roadmap of Tenzir
https://docs.tenzir.com/roadmap
4 stars 0 forks source link

API Source Operator #136

Closed dominiklohmann closed 7 months ago

dominiklohmann commented 8 months ago

Currently, APIs exposed by Tenzir nodes are not easily accessible in pipelines. The REST API isn't running by default, so from http localhost:5680/v0/pipeline/create <params> read json is not always an option.

The node, however, knows how to run the internal API requests without needing to spawn the API itself. This would allow for adding an api /v0/pipeline/create <params> source operator that does effectively the same, or even convenience operators like create [<options>] <pipeline> that make it easy to use the pipeline manager API from the command line.

There are two main motivations for this:

  1. Testing internal APIs is very cumbersome through the REST API.
  2. Deploying a pipeline cannot currently be done through the command line.
### Definition of Done
- [x] Agree on the desired UX for API access on the command line
- [x] Implement the new operator(s)