Would it be possible to expose the directive generator on a REST api?
We'd like to be able to script the creation of a declarative Jenkinsfile.