TELNEXUS_BUILD_ENV ?= dev TELNEXUS_GELF_URI ?= udp://packrat.noc.tnxs.net:12201 TELNEXUS_REGISTRY_PRIV ?= hub.tnxs.net TELNEXUS_REGISTRY_PUB ?= docker.io TELNEXUS_REPO_NAME = lib TELNEXUS_VERSION ?= 0.0.1 .PHONY: swagger swagger: rm -rf api # # generate auth0 client # mkdir -p lib/auth0 swagger generate client \ --log-output=./swagger/logs/generate-auth0-client.log \ --copyright-file=./build/COPYRIGHT \ --name=auth0 \ --spec=./swagger/auth0.yaml \ --target=./lib/auth0 \ --client-package=auth0-client \ --model-package=auth0-models # # generate auth client # mkdir api/auth swagger-new generate client \ --log-output=./swagger/logs/generate-auth-client.log \ --copyright-file=./build/COPYRIGHT \ --name=auth \ --spec=./swagger/auth-telnexus.yaml \ --target=./api/auth \ --client-package=auth-client \ --model-package=auth-models \ --principal=app.User # # generate cloud client # mkdir api/cloud swagger-new generate client \ --log-output=./swagger/logs/generate-cloud-client.log \ --copyright-file=./build/COPYRIGHT \ --name=cloud \ --spec=./swagger/cloud-telnexus.yaml \ --target=./api/cloud \ --client-package=cloud-client \ --model-package=cloud-models \ --principal=app.User # # generate crm client # mkdir api/crm swagger-new generate client \ --log-output=./swagger/logs/generate-crm-client.log \ --copyright-file=./build/COPYRIGHT \ --name=crm \ --spec=./swagger/crm-telnexus.yaml \ --target=./api/crm \ --client-package=crm-client \ --model-package=crm-models \ --principal=app.User # # generate devops client # mkdir api/devops swagger-new generate client \ --log-output=./swagger/logs/generate-devops-client.log \ --copyright-file=./build/COPYRIGHT \ --name=devops \ --spec=./swagger/devops-telnexus.yaml \ --target=./api/devops \ --client-package=devops-client \ --model-package=devops-models \ --principal=app.User # # generate isp client # mkdir api/isp swagger-new generate client \ --log-output=./swagger/logs/generate-isp-client.log \ --copyright-file=./build/COPYRIGHT \ --name=isp \ --spec=./swagger/isp-telnexus.yaml \ --target=./api/isp \ --client-package=isp-client \ --model-package=isp-models \ --principal=app.User # # generate kazoo client # mkdir api/kazoo swagger-new generate client \ --log-output=./swagger/logs/generate-kazoo-client.log \ --copyright-file=./build/COPYRIGHT \ --name=kazoo \ --spec=./swagger/kazoo-telnexus.yaml \ --target=./api/kazoo \ --client-package=kazoo-client \ --model-package=kazoo-models \ --principal=app.User # # generate stash client # mkdir api/stash swagger-new generate client \ --log-output=./swagger/logs/generate-stash-client.log \ --copyright-file=./build/COPYRIGHT \ --name=stash \ --spec=./swagger/stash-telnexus.yaml \ --target=./api/stash \ --client-package=stash-client \ --model-package=stash-models \ --principal=app.User # # generate voip client # mkdir api/voip swagger-new generate client \ --log-output=./swagger/logs/generate-voip-client.log \ --copyright-file=./build/COPYRIGHT \ --name=voip \ --spec=./swagger/voip-telnexus.yaml \ --target=./api/voip \ --client-package=voip-client \ --model-package=voip-models \ --principal=app.User # # generate workflow client # mkdir api/workflow swagger-new generate client \ --log-output=./swagger/logs/generate-workflow-client.log \ --copyright-file=./build/COPYRIGHT \ --name=workflow \ --spec=./swagger/workflow-telnexus.yaml \ --target=./api/workflow \ --client-package=workflow-client \ --model-package=workflow-models \ --principal=app.User