Skip to content

Feature/lab 2131 update open api spec for cm template api#169

Merged
pasha-zayko merged 24 commits into
mainfrom
feature/LAB-2131_Update-OpenAPI-Spec-For_CM-TemplateAPI
May 13, 2026
Merged

Feature/lab 2131 update open api spec for cm template api#169
pasha-zayko merged 24 commits into
mainfrom
feature/LAB-2131_Update-OpenAPI-Spec-For_CM-TemplateAPI

Conversation

@JagdishKhunti
Copy link
Copy Markdown
Contributor

This pull request makes several significant updates to the specs/Data-Gateway.json OpenAPI specification, primarily enhancing support for Cloud Matrix template management. The changes introduce new fields and endpoints for template versioning, publishing, and metadata, as well as improvements to the schema for clarity and completeness.

Cloud Matrix Template Management Enhancements:

  • Added a new templateId parameter and updated relevant endpoints to use templateId instead of templateName, improving template identification and retrieval.
  • Introduced a new PATCH endpoint /Api/CloudMatrix/Template/{templateId}/Publish to allow publishing of Cloud Matrix assessment templates.

Schema and Metadata Improvements:

  • Expanded the CloudMatrix.TemplateMetadata schema to include fields for versioning (majorVersion, minorVersion, patchVersion), publication status (isPublished), audit fields (createdBy, updatedBy), and unique identifier (id). The schema description and required fields were also updated for clarity.
  • Added new schema types: CloudMatrix.TemplateType and CloudMatrix.UpdateType to support template categorization and update tracking.

Template Operations and Examples:

  • Updated the POST /Api/CloudMatrix/Template endpoint to require templateType and updateType, and improved the response to return template metadata, including a sample response example.

Required Properties and Consistency:

  • Updated required properties for relevant schemas to include new fields such as templateId, templateType, and updateType, ensuring data integrity for template management.
    These changes collectively enhance the API's ability to manage, version, and publish Cloud Matrix templates in a more robust and auditable manner.

alyssarcano and others added 14 commits May 1, 2026 15:00
…-Add-OpenAPI-specs-for-PATCH-publish-template-endpoint

LAB-2151: Update OpenAPI specs for new publish template endpoint
…-cm-post-template-update

Lab 2150 cm post template update
- Add templateId to CloudMatrix assessment schemas and examples.
- Switch /Api/CloudMatrix/Template path parameter from templateName to templateId and update operationId/parameter refs.
- Rename CloudMatrix.Type to CloudMatrix.TemplateType and update related refs.
- Expand and normalize CloudMatrix.TemplateMetadata: rename timestamps (createdOn -> createdAt), add id, createdBy, updatedBy, isPublished and version fields (major/minor/patch), adjust required properties and examples, and update endpoint descriptions/summaries.
- Update sample payload keys to include templateId, audit and versioning fields.
Refine Cloud Matrix template metadata schema and examples: update templateId description; rename the 'type' field to 'templateType' in required fields and examples; change major/minor/patch version types from number to integer (int32) with minimum 0; rename example property 'templateId' to 'id'; and add a response schema $ref to #/components/schemas/CloudMatrix.TemplateMetadata to ensure consistent typing and schema validation.
…e/LAB-2174_Update-TemplateMetaData-Schema

LAB-2174:- TemplateId and update CloudMatrix metadata
Copilot AI review requested due to automatic review settings May 11, 2026 11:30
@JagdishKhunti JagdishKhunti marked this pull request as draft May 11, 2026 11:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Data Gateway OpenAPI specification to enhance Cloud Matrix template management, including introducing a templateId path parameter, adding template publishing support, and extending template metadata/versioning fields. It also bumps the TypeScript Data Gateway SDK package version accordingly.

Changes:

  • Added templateId parameter usage for template retrieval and introduced a new PATCH /Api/CloudMatrix/Template/{templateId}/Publish endpoint.
  • Expanded Cloud Matrix template upload and metadata schemas to support template type, update type, publishing state, and semantic version fields.
  • Updated the TypeScript SDK package version and lockfile metadata to reflect the spec changes.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/dataGateway/TypeScript/package.json Bumps the Data Gateway TypeScript SDK version.
src/dataGateway/TypeScript/package-lock.json Updates lockfile for the new SDK version; includes platform-metadata changes for optional native deps.
specs/Data-Gateway.json Adds templateId-based endpoints, publish operation, and extends Cloud Matrix template schemas/metadata.
Files not reviewed (1)
  • src/dataGateway/TypeScript/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread specs/Data-Gateway.json Outdated
Comment thread src/dataGateway/TypeScript/package-lock.json
Comment thread specs/Data-Gateway.json
JagdishKhunti and others added 8 commits May 11, 2026 15:02
Bump SHI - Data Gateway spec version from 3.2.1 to 3.2.2 and rename sample response properties for value assessment template upload from "major/minor/patch" to "majorVersion/minorVersion/patchVersion" to match the updated schema naming. Also includes an auto-generated package-lock.json update.
Delete the 'templateName' path parameter from specs/Data-Gateway.json. The CloudMatrix.TemplateName parameter (including its schema reference and example value) was removed; the API now relies on the templateId path parameter instead to identify templates, avoiding URL-encoding of template names.
…52_add_spec_for_new_endpoint_to_update_replace_template

Lab 2152 add spec for new endpoint to update replace template
@JagdishKhunti JagdishKhunti marked this pull request as ready for review May 12, 2026 15:35
Copy link
Copy Markdown
Contributor

@pasha-zayko pasha-zayko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And there is repeated missing reference to include new templateId field:

  • /Api/CloudMatrix/Assessment POST request, example at Data-Gateway.json:9924: nested correlation is missing templateId
  • /Api/CloudMatrix/Assessment POST response, example at Data-Gateway.json:10118: nested correlation is missing templateId
  • /Api/CloudMatrix/Account/{accountId}/Correlation/{correlationId} PATCH request, example at Data-Gateway.json:10336: nested correlation is missing templateId
  • /Api/CloudMatrix/Account/{accountId}/Correlation/{correlationId} PATCH response, example at Data-Gateway.json:10530: nested correlation is missing templateId
  • /Api/CloudMatrix/Account/{accountId}/Correlation/{correlationId} GET, example at Data-Gateway.json:10747: the correlation record is missing templateId
  • /Api/CloudMatrix/Correlation/{correlationId} GET, example at Data-Gateway.json:10796: the correlation record is missing templateId
  • /Api/CloudMatrix/Correlation/{correlationId}/Data GET, example at Data-Gateway.json:10846: nested correlation is missing templateId
  • /Api/CloudMatrix/Account/{accountId}/Correlation/{correlationId}/Data GET, example at Data-Gateway.json:11175: nested correlation is missing templateId

Updated as request in this commit :- 0d7d32e

Comment thread specs/Data-Gateway.json Outdated
Comment thread specs/Data-Gateway.json
Comment thread specs/Data-Gateway.json
- Refine CloudMatrix template POST documentation in specs/Data-Gateway.json:
clarify the endpoint description and sample request text;
add a 415 Unsupported Media Type response;
remove 401/403 response refs from one responses block;
simplify sample payloads by emptying userProfiles and displacements arrays;
and add templateId fields to multiple sample objects.
- These changes improve accuracy of the API examples and response descriptions for template uploads.
In specs/Data-Gateway.json, add provenance metadata to a version object by introducing createdAt ("2026-05-08T12:34:56Z") and createdBy ("bbab2907-c781-4bf1-b912-b91510853052") fields alongside the existing major/minor/patchVersion properties to record timestamp and creator for the version record.
@pasha-zayko pasha-zayko merged commit e028a59 into main May 13, 2026
7 of 8 checks passed
@pasha-zayko pasha-zayko deleted the feature/LAB-2131_Update-OpenAPI-Spec-For_CM-TemplateAPI branch May 13, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants