2021-07-31 03:05:02 +00:00
|
|
|
|
2022-09-03 21:10:56 +00:00
|
|
|
.PHONY: swagger client
|
|
|
|
|
|
|
|
client:
|
|
|
|
rm -rf client
|
|
|
|
openapi-generator-cli generate -i swagger/auth-vernonkeenan.yaml -g javascript -o client/auth
|
|
|
|
openapi-generator-cli generate -i swagger/board-vernonkeenan.yaml -g javascript -o client/board
|
|
|
|
openapi-generator-cli generate -i swagger/crm-vernonkeenan.yaml -g javascript -o client/crm
|
|
|
|
openapi-generator-cli generate -i swagger/devops-vernonkeenan.yaml -g javascript -o client/devops
|
|
|
|
openapi-generator-cli generate -i swagger/research-vernonkeenan.yaml -g javascript -o client/research
|
|
|
|
openapi-generator-cli generate -i swagger/sf-gate-vernonkeenan.yaml -g javascript -o client/sf-gate
|
|
|
|
openapi-generator-cli generate -i swagger/stash-vernonkeenan.yaml -g javascript -o client/stash
|
2021-07-31 03:05:02 +00:00
|
|
|
|
|
|
|
swagger:
|
2022-05-28 19:45:41 +00:00
|
|
|
cp ../auth/swagger/auth-vernonkeenan.yaml ./swagger
|
|
|
|
cp ../crm/swagger/crm-vernonkeenan.yaml ./swagger
|
|
|
|
cp ../devops/swagger/devops-vernonkeenan.yaml ./swagger
|
|
|
|
cp ../stash/swagger/stash-vernonkeenan.yaml ./swagger
|
|
|
|
cp ../sf-gate/swagger/sf-gate-vernonkeenan.yaml ./swagger
|
|
|
|
cp ../research/swagger/research-vernonkeenan.yaml ./swagger
|
2021-08-14 22:34:08 +00:00
|
|
|
#
|
2021-07-31 03:05:02 +00:00
|
|
|
rm -rf api
|
|
|
|
#
|
|
|
|
# generate auth0 client
|
|
|
|
#
|
2021-08-05 19:37:53 +00:00
|
|
|
mkdir -p api/auth0
|
2021-07-31 03:05:02 +00:00
|
|
|
swagger generate client \
|
|
|
|
--log-output=./swagger/logs/generate-auth0-client.log \
|
|
|
|
--copyright-file=./build/COPYRIGHT \
|
|
|
|
--name=auth0 \
|
|
|
|
--spec=./swagger/auth0.yaml \
|
2021-08-05 19:37:53 +00:00
|
|
|
--target=./api/auth0 \
|
2021-07-31 03:05:02 +00:00
|
|
|
--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 \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/auth-vernonkeenan.yaml \
|
2021-07-31 03:05:02 +00:00
|
|
|
--target=./api/auth \
|
|
|
|
--client-package=auth-client \
|
|
|
|
--model-package=auth-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 \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/crm-vernonkeenan.yaml \
|
2021-07-31 03:05:02 +00:00
|
|
|
--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 \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/devops-vernonkeenan.yaml \
|
2021-07-31 03:05:02 +00:00
|
|
|
--target=./api/devops \
|
|
|
|
--client-package=devops-client \
|
|
|
|
--model-package=devops-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 \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/stash-vernonkeenan.yaml \
|
2021-07-31 03:05:02 +00:00
|
|
|
--target=./api/stash \
|
|
|
|
--client-package=stash-client \
|
|
|
|
--model-package=stash-models \
|
|
|
|
--principal=app.User
|
|
|
|
#
|
2021-08-05 19:37:53 +00:00
|
|
|
# generate sfgate client
|
2021-07-31 03:05:02 +00:00
|
|
|
#
|
2021-08-05 19:37:53 +00:00
|
|
|
mkdir api/sfgate
|
2021-07-31 03:05:02 +00:00
|
|
|
swagger-new generate client \
|
2021-08-05 19:37:53 +00:00
|
|
|
--log-output=./swagger/logs/generate-sfgate-client.log \
|
2021-07-31 03:05:02 +00:00
|
|
|
--copyright-file=./build/COPYRIGHT \
|
2021-08-05 19:37:53 +00:00
|
|
|
--name=sfgate \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/sf-gate-vernonkeenan.yaml \
|
2021-08-05 19:37:53 +00:00
|
|
|
--target=./api/sfgate \
|
|
|
|
--client-package=sfgate-client \
|
|
|
|
--model-package=sfgate-models \
|
2021-07-31 03:05:02 +00:00
|
|
|
--principal=app.User
|
|
|
|
#
|
2021-08-14 22:34:08 +00:00
|
|
|
# generate research client
|
|
|
|
#
|
|
|
|
mkdir api/research
|
|
|
|
swagger-new generate client \
|
|
|
|
--log-output=./swagger/logs/generate-research-client.log \
|
|
|
|
--copyright-file=./build/COPYRIGHT \
|
|
|
|
--name=research \
|
2022-05-28 19:45:41 +00:00
|
|
|
--spec=./swagger/sf-gate-vernonkeenan.yaml \
|
2021-08-14 22:34:08 +00:00
|
|
|
--target=./api/research \
|
|
|
|
--client-package=research-client \
|
|
|
|
--model-package=research-models \
|
|
|
|
--principal=app.User
|