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-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
# generate auth0
|
|
|
|
#
|
|
|
|
mkdir -p api/auth0
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
|
|
|
# generate blaze
|
|
|
|
#
|
|
|
|
mkdir api/blaze
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
2021-01-08 17:11:25 +00:00
|
|
|
# generate crm
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/crm
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
|
|
|
# generate devops
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/devops
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
|
|
|
# generate geo
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/geo
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
# generate gov-gw
|
|
|
|
#
|
|
|
|
mkdir api/gov-gw
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
2021-01-08 17:11:25 +00:00
|
|
|
# generate ledger
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/ledger
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
# generate metrc-gw
|
|
|
|
#
|
|
|
|
mkdir api/metrc-gw
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
2021-01-08 17:11:25 +00:00
|
|
|
# generate ops
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/ops
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
# generate pdf
|
|
|
|
#
|
|
|
|
mkdir api/pdf
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
|
|
|
# generate plex
|
|
|
|
#
|
|
|
|
mkdir api/plex
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
2021-01-08 17:11:25 +00:00
|
|
|
# generate regs
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/regs
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:11:25 +00:00
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
# generate render
|
|
|
|
#
|
|
|
|
mkdir api/render
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
|
|
|
# generate sf-gate
|
|
|
|
#
|
|
|
|
mkdir api/sf-gate
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
|
|
|
# generate stash
|
|
|
|
#
|
|
|
|
mkdir api/stash
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
|
|
|
# generate vendor-gw
|
|
|
|
#
|
|
|
|
mkdir api/vendor-gw
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:40:28 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|
2021-01-08 17:40:28 +00:00
|
|
|
#
|
2021-01-08 17:11:25 +00:00
|
|
|
# generate workflow
|
|
|
|
#
|
2021-01-08 17:40:28 +00:00
|
|
|
mkdir api/workflow
|
2021-02-09 16:56:57 +00:00
|
|
|
swagger-new generate client \
|
2021-01-08 17:11:25 +00:00
|
|
|
--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 \
|
2021-02-23 20:03:04 +00:00
|
|
|
--principal=app.User &
|