Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Create a Microsoft Copilot plugin from an API in API Center #212

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
"title": "%azure-api-center.commands.generate-api-client.title%",
"category": "Azure API Center"
},
{
"command": "azure-api-center.generate-api-plugin",
"title": "%azure-api-center.commands.generate-api-plugin.title%",
"category": "Azure API Center"
},
{
"command": "azure-api-center.importOpenApiByFile",
"title": "%azure-api-center.commands.importOpenApiByFile.title%",
Expand Down Expand Up @@ -176,6 +181,10 @@
"command": "azure-api-center.generate-api-client",
"when": "view == apiCenterTreeView && viewItem == azureApiCenterApiVersionDefinitionTreeItem-openapi"
},
{
"command": "azure-api-center.generate-api-plugin",
"when": "view == apiCenterTreeView && viewItem == azureApiCenterApiVersionDefinitionTreeItem-openapi"
},
{
"command": "azure-api-center.importOpenApiByFile",
"when": "view == apiCenterTreeView && viewItem =~ /never/"
Expand Down Expand Up @@ -251,6 +260,10 @@
"command": "azure-api-center.generate-api-client",
"when": "never"
},
{
"command": "azure-api-center.generate-api-plugin",
"when": "never"
},
{
"command": "azure-api-center.generateHttpFile",
"when": "never"
Expand Down
1 change: 1 addition & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"azure-api-center.commands.open-api-docs.title": "Open API Documentation",
"azure-api-center.commands.open-postman.title": "Test in Postman",
"azure-api-center.commands.generate-api-client.title": "Generate API Client",
"azure-api-center.commands.generate-api-plugin.title": "Create Microsoft Copilot plugin",
"azure-api-center.commands.importOpenApiByFile.title": "Import OpenAPI from File",
"azure-api-center.commands.importOpenApiByLink.title": "Import OpenAPI from Link",
"azure-api-center.commands.exportApi.title": "Export API Specification Document",
Expand Down
2 changes: 2 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@

registerCommandWithTelemetry('azure-api-center.generate-api-client', generateApiLibrary);

registerCommandWithTelemetry('azure-api-center.generate-api-plugin', generateApiLibrary);

Check warning on line 98 in src/extension.ts

View check run for this annotation

Codecov / codecov/patch

src/extension.ts#L97-L98

Added lines #L97 - L98 were not covered by tests
registerCommandWithTelemetry('azure-api-center.generateHttpFile', GenerateHttpFile.generateHttpFile);

registerCommandWithTelemetry('azure-api-center.registerApi', registerApi);
Expand Down
Loading