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