LAB-2216 Add template publishers management endpoints. - #173
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the Data Gateway OpenAPI spec with Cloud Matrix Template Publisher management support.
Changes:
- Adds a
CloudMatrix.TemplatePublisherschema. - Adds
GET /Api/CloudMatrix/TemplatePublishersfor retrieving publishers. - Adds
PUT /Api/CloudMatrix/TemplatePublishersfor replacing the publisher list.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pasha Zayko (pasha-zayko)
left a comment
There was a problem hiding this comment.
There are additional places in the modified code where stylistic format is not being followed. You should open all projects using Workspace file as most (if not all) of that formatting is done on save. It could have been caught in linting but it is not setup for the spec files so we need to rely on Workspace configuration. I can show the difference of what changes when it happens.
| } | ||
| }, | ||
| "description": "Additional metadata about the publisher to provide extensibility.", | ||
| "examples": [{ |
There was a problem hiding this comment.
Object brace should be on separate line from array bracket
| "examples": [{ | ||
| "updatedAt": "2025-12-15T21:13:12.821Z", | ||
| "updatedBy": "John Doe" | ||
| }] |
There was a problem hiding this comment.
Same as above
There was a problem hiding this comment.
This version should be incremented as well, ideally it should match the value in package.json
This pull request adds support for managing Cloud Matrix Template Publishers in the API. The main changes include introducing a new schema for template publishers and implementing new GET and PUT endpoints to retrieve and update the list of publishers.
New Cloud Matrix Template Publisher management:
CloudMatrix.TemplatePublisherschema to the OpenAPI spec, which defines the structure for template publishers, including fields such asname,isActive, and optionalmetadata./Api/CloudMatrix/TemplatePublishersendpoint with:GETmethod to retrieve all template publishers, requiring theCloudMatrix.Readscope.PUTmethod to upload and replace the full list of template publishers, restricted to certain tenants and requiring theCloudMatrix.ReadWrite.Allscope.