Last active
February 19, 2018 19:47
-
-
Save kevdoran/77b119a550d0e2ab4df562da48e5e088 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NiFi Client | |
mkdir -p ~/tmp && \ | |
echo '{ "packageName": "nifi" }' > ~/tmp/swagger-nifi-python-config.json && \ | |
rm -rf ~/tmp/nifi-python-client && \ | |
swagger-codegen generate \ | |
--lang python \ | |
--config swagger-nifi-python-config.json \ | |
--api-package apis \ | |
--model-package models \ | |
--template-dir /path/to/nipyapi/templates \ | |
--input-spec /path/to/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/target/swagger-ui/swagger.json \ | |
--output ~/tmp/nifi-python-client | |
rm -rf /path/to/nipyapi/nipyapi/nifi && cp -rf ~/tmp/nifi-python-client/nifi /path/to/nipyapi/nipyapi/nifi | |
# NiFi Registry Client | |
mkdir -p ~/tmp && \ | |
echo '{ "packageName": "registry" }' > ~/tmp/swagger-registry-python-config.json && \ | |
rm -rf ~/tmp/nifi-registry-python-client && \ | |
swagger-codegen generate \ | |
--lang python \ | |
--config swagger-registry-python-config.json \ | |
--api-package apis \ | |
--model-package models \ | |
--template-dir /path/to/nipyapi/templates \ | |
--input-spec /path/to/nifi-registry/nifi-registry-web-api/target/swagger-ui/swagger.json \ | |
--output ~/tmp/nifi-registry-python-client | |
rm -rf /path/to/nipyapi/nipyapi/registry && \ | |
cp -rf ~/tmp/nifi-registry-python-client/registry /path/to/nipyapi/nipyapi/registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment