From: 刘洪青 Date: Mon, 12 Oct 2020 16:38:27 +0000 (+0800) Subject: feat: authx-service 的 poa api-docs 的初始化工具,支持 POA_SA 服务地址的可配置 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=13871927309f801da623eab73cd4b57295d70f74;p=institute%2Fdeploy-authx-service.git feat: authx-service 的 poa api-docs 的初始化工具,支持 POA_SA 服务地址的可配置 --- diff --git a/poa-api-docs/exec.sh b/poa-api-docs/exec.sh index bfe4bc6..eadd0f4 100644 --- a/poa-api-docs/exec.sh +++ b/poa-api-docs/exec.sh @@ -33,7 +33,7 @@ curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/user/apiVersions/v1/publish curl -i -s -X DELETE "${POA_SA_SERVER_URL}/v1/services/authz" # 1. 创建服务 -curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services' -H 'Content-Type: application/json" -d '{"id": "authz", "origin": "http://user-authorization-poa-svc.user-authorization-service.svc.cluster.local:8080", "name": "授权服务", "description": "授权服务"}' +curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services" -H 'Content-Type: application/json' -d '{"id": "authz", "origin": "http://user-authorization-poa-svc.user-authorization-service.svc.cluster.local:8080", "name": "授权服务", "description": "授权服务"}' # 2. 创建版本 curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/authz/apiVersions/v1" @@ -50,7 +50,7 @@ curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/authz/apiVersions/v1/publis curl -i -s -X DELETE "${POA_SA_SERVER_URL}/v1/services/communicate" # 1. 创建服务 -curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services' -H 'Content-Type: application/json" -d '{"id": "communicate", "origin": "http://communicate-center-poa-svc.communicate-center.svc.cluster.local:8080", "name": "通信服务", "description": "通信服务"}' +curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services" -H 'Content-Type: application/json' -d '{"id": "communicate", "origin": "http://communicate-center-poa-svc.communicate-center.svc.cluster.local:8080", "name": "通信服务", "description": "通信服务"}' # 2. 创建版本 curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/communicate/apiVersions/v1"