fix: 修正poa-api-docs 的错误
author刘洪青 <loie.engine@gmail.com>
Mon, 16 Nov 2020 08:28:40 +0000 (16:28 +0800)
committer刘洪青 <loie.engine@gmail.com>
Mon, 16 Nov 2020 08:34:27 +0000 (16:34 +0800)
poa-api-docs/api-docs/communicate-center-poa.v1.yaml
poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
poa-api-docs/api-docs/user-data-service-poa.v1.yaml
poa-api-docs/api-docs/user-data-service-thirdparty-poa.v1.yaml
poa-api-docs/docker-entrypoint.sh

index 1b27686..e554590 100644 (file)
@@ -19,7 +19,7 @@ info:
   description: '通信服务 - 平台开放接口'
 servers:
   - url: '${POA_SERVER_URL}/apis/communicate/v1'
-    description: '正式环境'
+    description: '生产环境'
 tags:
   - name: Communication
     description: '通信'
index c7f4b87..c1be9d3 100644 (file)
@@ -19,7 +19,7 @@ info:
   description: '用户授权服务 - 平台开放接口'
 servers:
   - url: '${POA_SERVER_URL}/apis/authz/v1'
-    description: '演示环境'
+    description: '生产环境'
 tags:
   - name: Role
     description: '角色'
index b32551a..7802535 100644 (file)
@@ -20,7 +20,7 @@ info:
   description: '用户服务 - 平台开放接口'
 servers:
   - url: '${POA_SERVER_URL}/apis/user/v1'
-    description: '演示环境'
+    description: '生产环境'
 tags:
   - name: User
     description: '用户'
index b0d7d51..9f6336a 100644 (file)
@@ -19,8 +19,8 @@ info:
   version: v1
   description: '用户服务(第三方应用) - 平台开放接口'
 servers:
-  - url: 'https://poa.dev.supwisdom.com/apis/userThirdparty/v1'
-    description: '演示环境'
+  - url: '${POA_SERVER_URL}/apis/userThirdparty/v1'
+    description: '生产环境'
 tags:
   - name: AdminAppGroup
     description: '应用的用户组(普通)管理'
@@ -211,7 +211,7 @@ components:
       type: oauth2
       flows:
         clientCredentials:
-          tokenUrl: https://poa.dev.supwisdom.com/oauth2/token
+          tokenUrl: ${POA_SERVER_URL}/oauth2/token
           scopes:
             "userThirdparty:v1:adminAppGroupWrite": "写入应用的用户组(普通)"
 
index 3381313..8385b08 100644 (file)
@@ -12,6 +12,7 @@ if [ "$1" = 'app' ]; then
 
   if [ -n "$POA_SERVER_URL" ]; then
     replace_file "/root/poa-api-docs/user-data-service-poa.v1.yaml" "POA_SERVER_URL" "$POA_SERVER_URL"
+    replace_file "/root/poa-api-docs/user-data-service-thirdparty-poa.v1.yaml" "POA_SERVER_URL" "$POA_SERVER_URL"
     replace_file "/root/poa-api-docs/user-authorization-service-poa.v1.yaml" "POA_SERVER_URL" "$POA_SERVER_URL"
     replace_file "/root/poa-api-docs/communicate-center-poa.v1.yaml" "POA_SERVER_URL" "$POA_SERVER_URL"
   fi