fix: 修正poa-api-docs 的错误
diff --git a/poa-api-docs/api-docs/communicate-center-poa.v1.yaml b/poa-api-docs/api-docs/communicate-center-poa.v1.yaml
index 1b27686..e554590 100644
--- a/poa-api-docs/api-docs/communicate-center-poa.v1.yaml
+++ b/poa-api-docs/api-docs/communicate-center-poa.v1.yaml
@@ -19,7 +19,7 @@
description: '通信服务 - 平台开放接口'
servers:
- url: '${POA_SERVER_URL}/apis/communicate/v1'
- description: '正式环境'
+ description: '生产环境'
tags:
- name: Communication
description: '通信'
diff --git a/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml b/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
index c7f4b87..c1be9d3 100644
--- a/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
+++ b/poa-api-docs/api-docs/user-authorization-service-poa.v1.yaml
@@ -19,7 +19,7 @@
description: '用户授权服务 - 平台开放接口'
servers:
- url: '${POA_SERVER_URL}/apis/authz/v1'
- description: '演示环境'
+ description: '生产环境'
tags:
- name: Role
description: '角色'
diff --git a/poa-api-docs/api-docs/user-data-service-poa.v1.yaml b/poa-api-docs/api-docs/user-data-service-poa.v1.yaml
index b32551a..7802535 100644
--- a/poa-api-docs/api-docs/user-data-service-poa.v1.yaml
+++ b/poa-api-docs/api-docs/user-data-service-poa.v1.yaml
@@ -20,7 +20,7 @@
description: '用户服务 - 平台开放接口'
servers:
- url: '${POA_SERVER_URL}/apis/user/v1'
- description: '演示环境'
+ description: '生产环境'
tags:
- name: User
description: '用户'
diff --git a/poa-api-docs/api-docs/user-data-service-thirdparty-poa.v1.yaml b/poa-api-docs/api-docs/user-data-service-thirdparty-poa.v1.yaml
index b0d7d51..9f6336a 100644
--- a/poa-api-docs/api-docs/user-data-service-thirdparty-poa.v1.yaml
+++ b/poa-api-docs/api-docs/user-data-service-thirdparty-poa.v1.yaml
@@ -19,8 +19,8 @@
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 @@
type: oauth2
flows:
clientCredentials:
- tokenUrl: https://poa.dev.supwisdom.com/oauth2/token
+ tokenUrl: ${POA_SERVER_URL}/oauth2/token
scopes:
"userThirdparty:v1:adminAppGroupWrite": "写入应用的用户组(普通)"
diff --git a/poa-api-docs/docker-entrypoint.sh b/poa-api-docs/docker-entrypoint.sh
index 3381313..8385b08 100644
--- a/poa-api-docs/docker-entrypoint.sh
+++ b/poa-api-docs/docker-entrypoint.sh
@@ -12,6 +12,7 @@
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