docs: api docs 更新
author刘洪青 <hongqing.liu@supwisdom.com>
Sat, 8 May 2021 09:13:24 +0000 (17:13 +0800)
committer刘洪青 <hongqing.liu@supwisdom.com>
Sat, 8 May 2021 09:13:24 +0000 (17:13 +0800)
deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/9.poa-api-docs-installer.yaml
poa-api-docs/api-docs/user-data-service-poa.v1.yaml
poa-api-docs/docker-build.sh

index 18cda38..24e0b71 100644 (file)
@@ -36,7 +36,7 @@ spec:
       containers:
       - name: poa-api-docs-installer
         # 若使用了学校搭设的私有仓库,请修改
-        image: harbor.supwisdom.com/authx-service/poa-api-docs-installer:1.1.2-SNAPSHOT
+        image: harbor.supwisdom.com/authx-service/poa-api-docs-installer:1.1.3-SNAPSHOT
         imagePullPolicy: Always
         envFrom:
         - configMapRef:
index 46ac746..6624a5e 100644 (file)
@@ -871,6 +871,59 @@ paths:
           $ref: '#/components/responses/DefaultErrorResponse'
 
 
+  '/organizations/{organizationId}/organizationChain':
+    get:
+      summary: 根据组织机构ID获取组织机构链
+      operationId: getOrganizationChain
+      tags:
+        - Organization
+      security:
+        - oauth2:
+          - "user:v1:readOrganization"
+      parameters:
+        - name: organizationId
+          in: path
+          required: true
+          description: 组织机构ID
+          schema:
+            type: string
+      responses:
+        '200':
+          description: 组织机构信息
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/OrganizationListResponse'
+        default:
+          $ref: '#/components/responses/DefaultErrorResponse'
+
+  '/organizations/organizationCode/{organizationCode}/organizationChain':
+    get:
+      summary: 根据组织机构代码获取组织机构链
+      operationId: getOrganizationChainByCode
+      tags:
+        - Organization
+      security:
+        - oauth2:
+          - "user:v1:readOrganization"
+      parameters:
+        - name: organizationCode
+          in: path
+          required: true
+          description: 组织机构代码
+          schema:
+            type: string
+      responses:
+        '200':
+          description: 组织机构信息
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/OrganizationListResponse'
+        default:
+          $ref: '#/components/responses/DefaultErrorResponse'
+
+
   '/organizations/{organizationId}/users':
     get:
       summary: 获取组织机构下的用户列表(弃用)
index 4999cdf..d4ee017 100755 (executable)
@@ -8,7 +8,7 @@ IMAGE_SERVER="harbor.supwisdom.com"
 IMAGE_PREFIX="authx-service"
 
 NAME="poa-api-docs-installer"
-VERSION="1.1.2-SNAPSHOT"
+VERSION="1.1.3-SNAPSHOT"
 
 
 function build