lib/Makefile

109 lines
2.8 KiB
Makefile

.PHONY: swagger
swagger:
#
# generate auth
#
rm -rf ./api
mkdir -p api/v0.0.1/auth
swagger generate client \
--log-output=./swagger/logs/generate-auth-client.log \
--copyright-file=./build/COPYRIGHT \
--name=auth \
--spec=./swagger/auth-taxnexus.yaml \
--target=./api/v0.0.1/auth \
--client-package=auth-client \
--model-package=auth-models \
--principal=app.User
#
# generate crm
#
mkdir api/v0.0.1/crm
swagger generate client \
--log-output=./swagger/logs/generate-crm-client.log \
--copyright-file=./build/COPYRIGHT \
--name=crm \
--spec=./swagger/crm-taxnexus.yaml \
--target=./api/v0.0.1/crm \
--client-package=crm-client \
--model-package=crm-models \
--principal=app.User
#
# generate devops
#
mkdir api/v0.0.1/devops
swagger generate client \
--log-output=./swagger/logs/generate-devops-client.log \
--copyright-file=./build/COPYRIGHT \
--name=devops \
--spec=./swagger/devops-taxnexus.yaml \
--target=./api/v0.0.1/devops \
--client-package=devops-client \
--model-package=devops-models \
--principal=app.User
#
# generate geo
#
mkdir api/v0.0.1/geo
swagger generate client \
--log-output=./swagger/logs/generate-geo-client.log \
--copyright-file=./build/COPYRIGHT \
--name=geo \
--spec=./swagger/geo-taxnexus.yaml \
--target=./api/v0.0.1/geo \
--client-package=geo-client \
--model-package=geo-models \
--principal=app.User
#
# generate ledger
#
mkdir api/v0.0.1/ledger
swagger generate client \
--log-output=./swagger/logs/generate-ledger-client.log \
--copyright-file=./build/COPYRIGHT \
--name=ledger \
--spec=./swagger/ledger-taxnexus.yaml \
--target=./api/v0.0.1/ledger \
--client-package=ledger-client \
--model-package=ledger-models \
--principal=app.User
#
# generate ops
#
mkdir api/v0.0.1/ops
swagger generate client \
--log-output=./swagger/logs/generate-ops-client.log \
--copyright-file=./build/COPYRIGHT \
--name=ops \
--spec=./swagger/ops-taxnexus.yaml \
--target=./api/v0.0.1/ops \
--client-package=ops-client \
--model-package=ops-models \
--principal=app.User
#
# generate regs
#
mkdir api/v0.0.1/regs
swagger generate client \
--log-output=./swagger/logs/generate-regs-client.log \
--copyright-file=./build/COPYRIGHT \
--name=regs \
--spec=./swagger/regs-taxnexus.yaml \
--target=./api/v0.0.1/regs \
--client-package=regs-client \
--model-package=regs-models \
--principal=app.User
#
# generate workflow
#
mkdir api/v0.0.1/workflow
swagger generate client \
--log-output=./swagger/logs/generate-workflow-client.log \
--copyright-file=./build/COPYRIGHT \
--name=workflow \
--spec=./swagger/workflow-taxnexus.yaml \
--target=./api/v0.0.1/workflow \
--client-package=workflow-client \
--model-package=workflow-models \
--principal=app.User