From bdf33af840aaa083be669c5df3b00b2366603c8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=88=98=E6=B4=AA=E9=9D=92?= Date: Sat, 8 May 2021 17:13:24 +0800 Subject: [PATCH] =?utf8?q?docs:=20api=20docs=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../9.poa-api-docs-installer.yaml | 2 +- .../api-docs/user-data-service-poa.v1.yaml | 53 +++++++++++++++++++ poa-api-docs/docker-build.sh | 2 +- 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/9.poa-api-docs-installer.yaml b/deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/9.poa-api-docs-installer.yaml index 18cda38..24e0b71 100644 --- a/deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/9.poa-api-docs-installer.yaml +++ b/deploy-manifests/k8s-rancher/1.authx-service/0.authx-service/9.poa-api-docs-installer.yaml @@ -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: 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 46ac746..6624a5e 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 @@ -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: 获取组织机构下的用户列表(弃用) diff --git a/poa-api-docs/docker-build.sh b/poa-api-docs/docker-build.sh index 4999cdf..d4ee017 100755 --- a/poa-api-docs/docker-build.sh +++ b/poa-api-docs/docker-build.sh @@ -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 -- 2.17.1