From 34eca942f08e0530d7f392fa6c7bc30df9b069e7 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Fri, 15 Sep 2023 15:13:34 +0530 Subject: [PATCH] Upd: Fix the equivalent paths error Signed-off-by: George J Padayatti --- openapi/v2023.8.1/bundled.yaml | 87 +++++++------ openapi/v2023.8.1/index.yaml | 4 +- .../dataAttributes/getDataAttributeByID.yaml | 33 ----- .../getUpdateAndDeleteDataAttributeByID.yaml | 109 ++++++++++++++++ .../updateAndDeleteDataAttributeByID.yaml | 77 +----------- openapi/v2023.8.2/bundled.yaml | 87 +++++++------ openapi/v2023.8.2/index.yaml | 4 +- .../dataAttributes/getDataAttributeByID.yaml | 36 ------ .../getUpdateAndDeleteDataAttributeByID.yaml | 118 ++++++++++++++++++ .../updateAndDeleteDataAttributeByID.yaml | 82 ------------ 10 files changed, 316 insertions(+), 321 deletions(-) delete mode 100644 openapi/v2023.8.1/paths/config/dataAttributes/getDataAttributeByID.yaml create mode 100644 openapi/v2023.8.1/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml delete mode 100644 openapi/v2023.8.2/paths/config/dataAttributes/getDataAttributeByID.yaml create mode 100644 openapi/v2023.8.2/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml diff --git a/openapi/v2023.8.1/bundled.yaml b/openapi/v2023.8.1/bundled.yaml index 95c7721..97c5428 100644 --- a/openapi/v2023.8.1/bundled.yaml +++ b/openapi/v2023.8.1/bundled.yaml @@ -2444,41 +2444,25 @@ paths: deprecated: false security: - BearerAuth: [] - '/v1/organizations/{orgId}/templates/{templateId}': - put: + '/v1/organizations/{orgId}/purposes/{purposeId}/templates': + delete: tags: - config - description: Update data attribute by id + description: Delete multiple data attributes parameters: - name: orgId in: path required: true schema: type: string - - name: templateId + - name: purposeId in: path required: true schema: type: string - requestBody: - content: - application/json: - schema: - required: - - Consent - - PurposeIDs - type: object - properties: - Consent: - type: string - PurposeIDs: - type: array - items: - type: string - required: true responses: - '201': - description: Created + '200': + description: OK content: application/json: schema: @@ -2491,17 +2475,18 @@ paths: deprecated: false security: - BearerAuth: [] - delete: + '/v1/organizations/{orgId}/templates/{templateID}': + get: tags: - config - description: Delete data attribute by id + description: Get data attribute by ID parameters: - name: orgId in: path required: true schema: type: string - - name: templateId + - name: templateID in: path required: true schema: @@ -2513,33 +2498,51 @@ paths: application/json: schema: required: - - Organization + - OrgID + - Template type: object properties: - Organization: - $ref: '#/components/schemas/Organisation' + OrgID: + type: string + Template: + $ref: '#/components/schemas/DataAttribute' deprecated: false security: - BearerAuth: [] - '/v1/organizations/{orgId}/purposes/{purposeId}/templates': - delete: + put: tags: - config - description: Delete multiple data attributes + description: Update data attribute by id parameters: - name: orgId in: path required: true schema: type: string - - name: purposeId + - name: templateId in: path required: true schema: type: string + requestBody: + content: + application/json: + schema: + required: + - Consent + - PurposeIDs + type: object + properties: + Consent: + type: string + PurposeIDs: + type: array + items: + type: string + required: true responses: - '200': - description: OK + '201': + description: Created content: application/json: schema: @@ -2552,18 +2555,17 @@ paths: deprecated: false security: - BearerAuth: [] - '/v1/organizations/{orgId}/templates/{templateID}': - get: + delete: tags: - config - description: Get data attribute by ID + description: Delete data attribute by id parameters: - name: orgId in: path required: true schema: type: string - - name: templateID + - name: templateId in: path required: true schema: @@ -2575,14 +2577,11 @@ paths: application/json: schema: required: - - OrgID - - Template + - Organization type: object properties: - OrgID: - type: string - Template: - $ref: '#/components/schemas/DataAttribute' + Organization: + $ref: '#/components/schemas/Organisation' deprecated: false security: - BearerAuth: [] diff --git a/openapi/v2023.8.1/index.yaml b/openapi/v2023.8.1/index.yaml index a0857ff..28d8bca 100644 --- a/openapi/v2023.8.1/index.yaml +++ b/openapi/v2023.8.1/index.yaml @@ -149,12 +149,10 @@ paths: $ref: "./paths/config/consentAgreements/getDeleteUpdateConsentAgreementByID.yaml" /v1/organizations/{orgId}/templates: $ref: "./paths/config/dataAttributes/getAndAddDataAttributes.yaml" - /v1/organizations/{orgId}/templates/{templateId}: - $ref: "./paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml" /v1/organizations/{orgId}/purposes/{purposeId}/templates: $ref: "./paths/config/dataAttributes/deleteMultipleDataAttributes.yaml" /v1/organizations/{orgId}/templates/{templateID}: - $ref: "./paths/config/dataAttributes/getDataAttributeByID.yaml" + $ref: "./paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml" /v1/organizations/{orgId}/idp/open-id: $ref: "./paths/config/manageIndividuals/subscription/addGetUpdateAndDeleteIdentityProvider.yaml" /v1/organizations/{orgId}/subscription/enable: diff --git a/openapi/v2023.8.1/paths/config/dataAttributes/getDataAttributeByID.yaml b/openapi/v2023.8.1/paths/config/dataAttributes/getDataAttributeByID.yaml deleted file mode 100644 index 45854c1..0000000 --- a/openapi/v2023.8.1/paths/config/dataAttributes/getDataAttributeByID.yaml +++ /dev/null @@ -1,33 +0,0 @@ -get: - tags: - - config - description: Get data attribute by ID - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateID - in: path - required: true - schema: - type: string - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - OrgID - - Template - type: object - properties: - OrgID: - type: string - Template: - $ref: "../../../definitions/config/DataAttribute.yaml" - deprecated: false - security: - - BearerAuth: [] diff --git a/openapi/v2023.8.1/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml b/openapi/v2023.8.1/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml new file mode 100644 index 0000000..0d20c29 --- /dev/null +++ b/openapi/v2023.8.1/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml @@ -0,0 +1,109 @@ +get: + tags: + - config + description: Get data attribute by ID + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateID + in: path + required: true + schema: + type: string + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - OrgID + - Template + type: object + properties: + OrgID: + type: string + Template: + $ref: "../../../definitions/config/DataAttribute.yaml" + deprecated: false + security: + - BearerAuth: [] +put: + tags: + - config + description: Update data attribute by id + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateId + in: path + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + required: + - Consent + - PurposeIDs + type: object + properties: + Consent: + type: string + PurposeIDs: + type: array + items: + type: string + required: true + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - Organization + type: object + properties: + Organization: + $ref: "../../../definitions/onboarding/Organisation.yaml" + deprecated: false + security: + - BearerAuth: [] +delete: + tags: + - config + description: Delete data attribute by id + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateId + in: path + required: true + schema: + type: string + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - Organization + type: object + properties: + Organization: + $ref: "../../../definitions/onboarding/Organisation.yaml" + deprecated: false + security: + - BearerAuth: [] \ No newline at end of file diff --git a/openapi/v2023.8.1/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml b/openapi/v2023.8.1/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml index 89dd063..8b13789 100644 --- a/openapi/v2023.8.1/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml +++ b/openapi/v2023.8.1/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml @@ -1,76 +1 @@ -put: - tags: - - config - description: Update data attribute by id - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - required: - - Consent - - PurposeIDs - type: object - properties: - Consent: - type: string - PurposeIDs: - type: array - items: - type: string - required: true - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - Organization - type: object - properties: - Organization: - $ref: "../../../definitions/onboarding/Organisation.yaml" - deprecated: false - security: - - BearerAuth: [] -delete: - tags: - - config - description: Delete data attribute by id - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateId - in: path - required: true - schema: - type: string - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - Organization - type: object - properties: - Organization: - $ref: "../../../definitions/onboarding/Organisation.yaml" - deprecated: false - security: - - BearerAuth: [] + diff --git a/openapi/v2023.8.2/bundled.yaml b/openapi/v2023.8.2/bundled.yaml index dcb0eca..0f96dd9 100644 --- a/openapi/v2023.8.2/bundled.yaml +++ b/openapi/v2023.8.2/bundled.yaml @@ -2548,41 +2548,25 @@ paths: x-badges: - color: primary-color label: 'Authorised roles: Organisation admin' - '/v1/organizations/{orgId}/templates/{templateId}': - put: + '/v1/organizations/{orgId}/purposes/{purposeId}/templates': + delete: tags: - config - description: Update data attribute by id + description: Delete multiple data attributes parameters: - name: orgId in: path required: true schema: type: string - - name: templateId + - name: purposeId in: path required: true schema: type: string - requestBody: - content: - application/json: - schema: - required: - - Consent - - PurposeIDs - type: object - properties: - Consent: - type: string - PurposeIDs: - type: array - items: - type: string - required: true responses: - '201': - description: Created + '200': + description: OK content: application/json: schema: @@ -2598,17 +2582,18 @@ paths: x-badges: - color: primary-color label: 'Authorised roles: Organisation admin' - delete: + '/v1/organizations/{orgId}/templates/{templateID}': + get: tags: - config - description: Delete data attribute by id + description: Get data attribute by ID parameters: - name: orgId in: path required: true schema: type: string - - name: templateId + - name: templateID in: path required: true schema: @@ -2620,36 +2605,54 @@ paths: application/json: schema: required: - - Organization + - OrgID + - Template type: object properties: - Organization: - $ref: '#/components/schemas/Organisation' + OrgID: + type: string + Template: + $ref: '#/components/schemas/DataAttribute' deprecated: false security: - BearerAuth: [] x-badges: - color: primary-color label: 'Authorised roles: Organisation admin' - '/v1/organizations/{orgId}/purposes/{purposeId}/templates': - delete: + put: tags: - config - description: Delete multiple data attributes + description: Update data attribute by id parameters: - name: orgId in: path required: true schema: type: string - - name: purposeId + - name: templateId in: path required: true schema: type: string + requestBody: + content: + application/json: + schema: + required: + - Consent + - PurposeIDs + type: object + properties: + Consent: + type: string + PurposeIDs: + type: array + items: + type: string + required: true responses: - '200': - description: OK + '201': + description: Created content: application/json: schema: @@ -2665,18 +2668,17 @@ paths: x-badges: - color: primary-color label: 'Authorised roles: Organisation admin' - '/v1/organizations/{orgId}/templates/{templateID}': - get: + delete: tags: - config - description: Get data attribute by ID + description: Delete data attribute by id parameters: - name: orgId in: path required: true schema: type: string - - name: templateID + - name: templateId in: path required: true schema: @@ -2688,14 +2690,11 @@ paths: application/json: schema: required: - - OrgID - - Template + - Organization type: object properties: - OrgID: - type: string - Template: - $ref: '#/components/schemas/DataAttribute' + Organization: + $ref: '#/components/schemas/Organisation' deprecated: false security: - BearerAuth: [] diff --git a/openapi/v2023.8.2/index.yaml b/openapi/v2023.8.2/index.yaml index d490641..3bcc103 100644 --- a/openapi/v2023.8.2/index.yaml +++ b/openapi/v2023.8.2/index.yaml @@ -151,12 +151,10 @@ paths: $ref: "./paths/config/consentAgreements/getDeleteUpdateConsentAgreementByID.yaml" /v1/organizations/{orgId}/templates: $ref: "./paths/config/dataAttributes/getAndAddDataAttributes.yaml" - /v1/organizations/{orgId}/templates/{templateId}: - $ref: "./paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml" /v1/organizations/{orgId}/purposes/{purposeId}/templates: $ref: "./paths/config/dataAttributes/deleteMultipleDataAttributes.yaml" /v1/organizations/{orgId}/templates/{templateID}: - $ref: "./paths/config/dataAttributes/getDataAttributeByID.yaml" + $ref: "./paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml" /v1/organizations/{orgId}/idp/open-id: $ref: "./paths/config/manageIndividuals/subscription/addGetUpdateAndDeleteIdentityProvider.yaml" /v1/organizations/{orgId}/subscription/enable: diff --git a/openapi/v2023.8.2/paths/config/dataAttributes/getDataAttributeByID.yaml b/openapi/v2023.8.2/paths/config/dataAttributes/getDataAttributeByID.yaml deleted file mode 100644 index 5cc946e..0000000 --- a/openapi/v2023.8.2/paths/config/dataAttributes/getDataAttributeByID.yaml +++ /dev/null @@ -1,36 +0,0 @@ -get: - tags: - - config - description: Get data attribute by ID - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateID - in: path - required: true - schema: - type: string - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - OrgID - - Template - type: object - properties: - OrgID: - type: string - Template: - $ref: "../../../definitions/config/DataAttribute.yaml" - deprecated: false - security: - - BearerAuth: [] - x-badges: - - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) - label: 'Authorised roles: Organisation admin' diff --git a/openapi/v2023.8.2/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml b/openapi/v2023.8.2/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml new file mode 100644 index 0000000..a437ae1 --- /dev/null +++ b/openapi/v2023.8.2/paths/config/dataAttributes/getUpdateAndDeleteDataAttributeByID.yaml @@ -0,0 +1,118 @@ +get: + tags: + - config + description: Get data attribute by ID + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateID + in: path + required: true + schema: + type: string + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - OrgID + - Template + type: object + properties: + OrgID: + type: string + Template: + $ref: "../../../definitions/config/DataAttribute.yaml" + deprecated: false + security: + - BearerAuth: [] + x-badges: + - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) + label: "Authorised roles: Organisation admin" +put: + tags: + - config + description: Update data attribute by id + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateId + in: path + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + required: + - Consent + - PurposeIDs + type: object + properties: + Consent: + type: string + PurposeIDs: + type: array + items: + type: string + required: true + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - Organization + type: object + properties: + Organization: + $ref: "../../../definitions/onboarding/Organisation.yaml" + deprecated: false + security: + - BearerAuth: [] + x-badges: + - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) + label: "Authorised roles: Organisation admin" +delete: + tags: + - config + description: Delete data attribute by id + parameters: + - name: orgId + in: path + required: true + schema: + type: string + - name: templateId + in: path + required: true + schema: + type: string + responses: + "201": + description: Created + content: + application/json: + schema: + required: + - Organization + type: object + properties: + Organization: + $ref: "../../../definitions/onboarding/Organisation.yaml" + deprecated: false + security: + - BearerAuth: [] + x-badges: + - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) + label: "Authorised roles: Organisation admin" diff --git a/openapi/v2023.8.2/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml b/openapi/v2023.8.2/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml index 314ec65..e69de29 100644 --- a/openapi/v2023.8.2/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml +++ b/openapi/v2023.8.2/paths/config/dataAttributes/updateAndDeleteDataAttributeByID.yaml @@ -1,82 +0,0 @@ -put: - tags: - - config - description: Update data attribute by id - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - required: - - Consent - - PurposeIDs - type: object - properties: - Consent: - type: string - PurposeIDs: - type: array - items: - type: string - required: true - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - Organization - type: object - properties: - Organization: - $ref: "../../../definitions/onboarding/Organisation.yaml" - deprecated: false - security: - - BearerAuth: [] - x-badges: - - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) - label: 'Authorised roles: Organisation admin' -delete: - tags: - - config - description: Delete data attribute by id - parameters: - - name: orgId - in: path - required: true - schema: - type: string - - name: templateId - in: path - required: true - schema: - type: string - responses: - "201": - description: Created - content: - application/json: - schema: - required: - - Organization - type: object - properties: - Organization: - $ref: "../../../definitions/onboarding/Organisation.yaml" - deprecated: false - security: - - BearerAuth: [] - x-badges: - - color: primary-color # <<< Allowed values (red, green, orange, blue, primary-color) - label: 'Authorised roles: Organisation admin'