From 12dc86997ece280a04a692a5a13191dbab66620a Mon Sep 17 00:00:00 2001 From: Joel Abshier Date: Tue, 1 Nov 2022 14:42:43 -0500 Subject: [PATCH 1/2] chore(aim): Add 403 Response to OEM Org Create --- src/quartz/paths/orgs.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/quartz/paths/orgs.yml b/src/quartz/paths/orgs.yml index 53c4e8b3b..5d00af463 100644 --- a/src/quartz/paths/orgs.yml +++ b/src/quartz/paths/orgs.yml @@ -4,18 +4,18 @@ get: - Organizations summary: List all organizations responses: - "200": + '200': description: A list of organizations content: application/json: schema: - $ref: "../schemas/Organizations.yml" - "401": + $ref: '../schemas/Organizations.yml' + '401': description: Unauthorized bearer token - $ref: "../../common/responses/ServerError.yml" + $ref: '../../common/responses/ServerError.yml' default: description: Unexpected error - $ref: "../../common/responses/ServerError.yml" + $ref: '../../common/responses/ServerError.yml' post: operationId: PostOrgs tags: @@ -27,23 +27,26 @@ post: content: application/json: schema: - $ref: "../schemas/OrganizationRequest.yml" + $ref: '../schemas/OrganizationRequest.yml' responses: - "201": + '201': description: Organization created content: application/json: schema: - $ref: "../schemas/OrganizationWithToken.yml" - "400": + $ref: '../schemas/OrganizationWithToken.yml' + '400': description: Invalid request - $ref: "../../common/responses/ServerError.yml" - "401": + $ref: '../../common/responses/ServerError.yml' + '401': description: Unauthorized bearer token - $ref: "../../common/responses/ServerError.yml" - "409": + $ref: '../../common/responses/ServerError.yml' + '403': + description: Organization limit reached + $ref: '../../common/responses/ServerError.yml' + '409': description: Organization name taken - $ref: "../../common/responses/ServerError.yml" + $ref: '../../common/responses/ServerError.yml' default: description: Unexpected error - $ref: "../../common/responses/ServerError.yml" + $ref: '../../common/responses/ServerError.yml' From 9768e9912ab3a6bd1042507f6a7e284dc862634f Mon Sep 17 00:00:00 2001 From: Joel Abshier Date: Tue, 1 Nov 2022 14:43:53 -0500 Subject: [PATCH 2/2] chore(aim): Add 403 to v2private Org Create --- contracts/priv/quartz-oem.yml | 3 +++ contracts/priv/unity.yml | 3 +++ src/unity/paths/orgs.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/contracts/priv/quartz-oem.yml b/contracts/priv/quartz-oem.yml index 4278521da..085c95438 100644 --- a/contracts/priv/quartz-oem.yml +++ b/contracts/priv/quartz-oem.yml @@ -54,6 +54,9 @@ paths: '401': description: Unauthorized bearer token $ref: '#/components/responses/ServerError' + '403': + description: Organization limit reached + $ref: '#/components/responses/ServerError' '409': description: Organization name taken $ref: '#/components/responses/ServerError' diff --git a/contracts/priv/unity.yml b/contracts/priv/unity.yml index 4fc79f4ec..151b2f233 100644 --- a/contracts/priv/unity.yml +++ b/contracts/priv/unity.yml @@ -643,6 +643,9 @@ paths: '401': description: Unauthorized. The token passed doesn't have permissions necessary to complete the request. $ref: '#/components/responses/ServerError' + '403': + description: Organization limit reached + $ref: '#/components/responses/ServerError' '409': description: Conflict. The organization name is already in use. $ref: '#/components/responses/ServerError' diff --git a/src/unity/paths/orgs.yml b/src/unity/paths/orgs.yml index 318d24a90..42c3fffe7 100644 --- a/src/unity/paths/orgs.yml +++ b/src/unity/paths/orgs.yml @@ -21,6 +21,9 @@ post: '401': description: Unauthorized. The token passed doesn't have permissions necessary to complete the request. $ref: '../../common/responses/ServerError.yml' + '403': + description: Organization limit reached + $ref: '../../common/responses/ServerError.yml' '409': description: Conflict. The organization name is already in use. $ref: '../../common/responses/ServerError.yml'