lib/Makefile

239 lines
6.0 KiB
Makefile
Raw Normal View History

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:40:28 +00:00
mkdir -p api/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:40:28 +00:00
--target=./api/auth \
2021-01-08 17:11:25 +00:00
--client-package=auth-client \
--model-package=auth-models \
--principal=app.User
#
2021-01-08 17:40:28 +00:00
# generate auth0
#
mkdir -p api/auth0
swagger generate client \
--log-output=./swagger/logs/generate-auth0-client.log \
--copyright-file=./build/COPYRIGHT \
--name=auth0 \
--spec=./swagger/auth0.yaml \
--target=./api/auth0 \
--client-package=auth0-client \
--model-package=auth0-models \
--principal=app.User
#
# generate blaze
#
mkdir api/blaze
swagger generate client \
--log-output=./swagger/logs/generate-blaze-client.log \
--copyright-file=./build/COPYRIGHT \
--name=blaze \
--spec=./swagger/blaze-taxnexus.yaml \
--target=./api/blaze \
--client-package=blaze-client \
--model-package=blaze-models \
--principal=app.User
#
2021-01-08 17:11:25 +00:00
# generate crm
#
2021-01-08 17:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/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:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/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:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/geo \
2021-01-08 17:11:25 +00:00
--client-package=geo-client \
--model-package=geo-models \
--principal=app.User
#
2021-01-08 17:40:28 +00:00
# generate gov-gw
#
mkdir api/gov-gw
swagger generate client \
--log-output=./swagger/logs/generate-gov-gw-client.log \
--copyright-file=./build/COPYRIGHT \
--name=gov-gw \
--spec=./swagger/gov-gw-taxnexus.yaml \
--target=./api/gov-gw \
--client-package=gov-gw-client \
--model-package=gov-gw-models \
--principal=app.User
#
2021-01-08 17:11:25 +00:00
# generate ledger
#
2021-01-08 17:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/ledger \
2021-01-08 17:11:25 +00:00
--client-package=ledger-client \
--model-package=ledger-models \
--principal=app.User
#
2021-01-08 17:40:28 +00:00
# generate metrc-gw
#
mkdir api/metrc-gw
swagger generate client \
--log-output=./swagger/logs/generate-metrc-gw-client.log \
--copyright-file=./build/COPYRIGHT \
--name=metrc-gw \
--spec=./swagger/metrc-gw-taxnexus.yaml \
--target=./api/metrc-gw \
--client-package=metrc-gw-client \
--model-package=metrc-gw-models \
--principal=app.User
#
2021-01-08 17:11:25 +00:00
# generate ops
#
2021-01-08 17:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/ops \
2021-01-08 17:11:25 +00:00
--client-package=ops-client \
--model-package=ops-models \
--principal=app.User
#
2021-01-08 17:40:28 +00:00
# generate pdf
#
mkdir api/pdf
swagger generate client \
--log-output=./swagger/logs/generate-pdf-client.log \
--copyright-file=./build/COPYRIGHT \
--name=pdf \
--spec=./swagger/pdf-taxnexus.yaml \
--target=./api/pdf \
--client-package=pdf-client \
--model-package=pdf-models \
--principal=app.User
#
# generate plex
#
mkdir api/plex
swagger generate client \
--log-output=./swagger/logs/generate-plex-client.log \
--copyright-file=./build/COPYRIGHT \
--name=plex \
--spec=./swagger/plex-taxnexus.yaml \
--target=./api/plex \
--client-package=plex-client \
--model-package=plex-models \
--principal=app.User
#
2021-01-08 17:11:25 +00:00
# generate regs
#
2021-01-08 17:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/regs \
2021-01-08 17:11:25 +00:00
--client-package=regs-client \
--model-package=regs-models \
--principal=app.User
#
2021-01-08 17:40:28 +00:00
# generate render
#
mkdir api/render
swagger generate client \
--log-output=./swagger/logs/generate-render-client.log \
--copyright-file=./build/COPYRIGHT \
--name=render \
--spec=./swagger/render-taxnexus.yaml \
--target=./api/render \
--client-package=render-client \
--model-package=render-models \
--principal=app.User
#
# generate sf-gate
#
mkdir api/sf-gate
swagger generate client \
--log-output=./swagger/logs/generate-sf-gate-client.log \
--copyright-file=./build/COPYRIGHT \
--name=sf-gate \
--spec=./swagger/sf-gate-taxnexus.yaml \
--target=./api/sf-gate \
--client-package=sf-gate-client \
--model-package=sf-gate-models \
--principal=app.User
#
# generate stash
#
mkdir api/stash
swagger generate client \
--log-output=./swagger/logs/generate-stash-client.log \
--copyright-file=./build/COPYRIGHT \
--name=stash \
--spec=./swagger/stash-taxnexus.yaml \
--target=./api/stash \
--client-package=stash-client \
--model-package=stash-models \
--principal=app.User
#
# generate vendor-gw
#
mkdir api/vendor-gw
swagger generate client \
--log-output=./swagger/logs/generate-vendor-gw-client.log \
--copyright-file=./build/COPYRIGHT \
--name=vendor-gw \
--spec=./swagger/vendor-gw-taxnexus.yaml \
--target=./api/vendor-gw \
--client-package=vendor-gw-client \
--model-package=vendor-gw-models \
--principal=app.User
#
2021-01-08 17:11:25 +00:00
# generate workflow
#
2021-01-08 17:40:28 +00:00
mkdir api/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:40:28 +00:00
--target=./api/workflow \
2021-01-08 17:11:25 +00:00
--client-package=workflow-client \
--model-package=workflow-models \
--principal=app.User