Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions schemas/constructs/v1beta1/credential/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ info:
description: API for managing Meshery credentials used to store sensitive information for connections.

paths:
/api/integrations/credentials:
/api/integrations/credential:
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The API path is being changed from plural /api/integrations/credentials to singular /api/integrations/credential, which breaks the RESTful API convention used throughout this codebase. Other similar endpoints in the repository use plural forms (e.g., /api/environments, /api/workspaces). This change is inconsistent with the established pattern and is a breaking API change that will affect all clients using these endpoints. Consider keeping the plural form /api/integrations/credentials to maintain consistency with other API endpoints and avoid breaking existing integrations.

Copilot uses AI. Check for mistakes.
get:
x-internal: ["cloud"]
tags:
- Credentials
- Credential
operationId: GetUserCredentials
summary: Get user credentials
description: Returns a paginated list of credentials for the authenticated user.
Expand Down Expand Up @@ -54,7 +54,7 @@ paths:
post:
x-internal: ["cloud"]
tags:
- Credentials
- Credential
operationId: SaveUserCredential
summary: Create a new credential
description: Creates a new credential for the authenticated user.
Expand All @@ -66,7 +66,7 @@ paths:
$ref: "#/components/schemas/Credential"
responses:
"201":
description: Credential created successfully
description: Credential created
content:
application/json:
schema:
Expand All @@ -77,7 +77,7 @@ paths:
put:
x-internal: ["cloud"]
tags:
- Credentials
- Credential
operationId: UpdateUserCredential
summary: Update an existing credential
description: Updates an existing credential for the authenticated user.
Expand All @@ -89,7 +89,7 @@ paths:
$ref: "#/components/schemas/Credential"
responses:
"200":
description: Credential updated successfully
description: Credential updated
content:
application/json:
schema:
Expand All @@ -100,7 +100,7 @@ paths:
delete:
x-internal: ["cloud"]
tags:
- Credentials
- Credential
operationId: DeleteUserCredential
summary: Delete a credential
description: Soft deletes a credential by its ID.
Expand All @@ -114,15 +114,15 @@ paths:
format: uuid
responses:
"200":
description: Credential deleted successfully
description: Credential deleted
"500":
description: Server error

/api/integrations/credentials/{id}:
/api/integrations/credential/{id}:
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

This path parameter endpoint is being changed from plural /api/integrations/credentials/{id} to singular /api/integrations/credential/{id}. This change is inconsistent with the RESTful API conventions used throughout the codebase (e.g., /api/workspaces/{id}, /api/environments/{id} use plural forms) and represents a breaking API change. To maintain consistency and avoid breaking existing client integrations, the plural form /api/integrations/credentials/{id} should be retained.

Copilot uses AI. Check for mistakes.
get:
x-internal: ["cloud"]
tags:
- Credentials
- Credential
operationId: GetCredentialByID
summary: Get a credential by ID
description: Returns a specific credential by its ID.
Expand Down