Skip to content

Commit 35cb660

Browse files
author
gitName
committed
work in progress
1 parent 677f27a commit 35cb660

File tree

6 files changed

+15
-57
lines changed

6 files changed

+15
-57
lines changed

.github/workflows/stale.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

articles/api-center/build-register-apis-vscode-extension.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ API developers in your organization can build and register APIs in your [API cen
2121

2222
The following Visual Studio Code extensions is optional and needed only for the specified scenario:
2323

24+
25+
* [GitHub Actions](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) - to register APIs using a CI/CD pipeline with GitHub Actions
2426
* [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) - to generate OpenAPI specification files from API code
2527

2628
[!INCLUDE [vscode-extension-setup](includes/vscode-extension-setup.md)]
@@ -38,11 +40,10 @@ The API is added to your API center inventory.
3840

3941
## Register APIs - CI/CD pipeline
4042

41-
The following steps register an API in your API center with a CI/CD pipeline. It's recommended to inventory APIs with your API center using CI/CD to ensure API metadata including specification and version stay current in your API center as the API continues to evolve over time.
43+
The following steps register an API in your API center with a CI/CD pipeline. With this option, add a preconfigured GitHub or Azure DevOps pipeline to your active Visual Studio Code workspace that is run as part of a CI/CD workflow on each commit to source control. It's recommended to inventory APIs with your API center using CI/CD to ensure API metadata including specification and version stay current in your API center as the API continues to evolve over time.
4244

4345
1. Use the **Ctrl+Shift+P** keyboard shortcut to open the Command Palette. Type **Azure API Center: Register API** and hit **Enter**.
4446
1. Select **CI/CD**.
45-
1. adds a preconfigured GitHub or Azure DevOps pipeline to your active Visual Studio Code workspace that is run as part of a CI/CD workflow on each commit to source control. It's recommended to inventory APIs with your API center using CI/CD to ensure API metadata including specification and version stay current in your API center as the API continues to evolve over time.
4647
1. Select either **GitHub** or **Azure DevOps**, depending on your preferred source control mechanism. A Visual Studio Code workspace must be open for the Azure API Center extension to add a pipeline to your workspace. After the file is added, complete steps documented in the CI/CD pipeline file itself to configure Azure Pipeline/GitHub Action environment variables and identity. On push to source control, the API will be registered in your API center.
4748

4849
Learn more about setting up a [GitHub Actions workflow](register-apis-github-actions.md) to register APIs with your API center.

articles/api-center/discover-apis-vscode-extension.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@ API developers in your organization can discover and consume APIs in your [API c
1818

1919
* **Consume APIs** - Generate API SDK clients in their favorite language including JavaScript, TypeScript, .NET, Python, and Java, using the Microsoft Kiota engine that generates SDKs for Microsoft Graph, GitHub, and more.
2020

21-
21+
API developers can also take advantage of features in the extension to [register APIs](build-register-apis-vscode-extension.md) in the API center and ensure [API governance](govern-apis-vscode-extension.md).
2222

2323
> [!TIP]
24-
> Optionally enable a [platform API catalog](enable-platform-api-catalog-vscode-extension.md) for your API center in Visual Studio Code so that app developers in your organization can discover APIs in a centralized location. The platform API catalog is a read-only view of the API inventory.
25-
26-
## Prerequisites
24+
> If you want enterprise app developers to discover APIs in a centralized location, optionally enable a [platform API catalog](enable-platform-api-catalog-vscode-extension.md) for your API center in Visual Studio Code. The platform API catalog is a read-only view of the API inventory.
2725
2826
[!INCLUDE [vscode-extension-basic-prerequisites](includes/vscode-extension-basic-prerequisites.md)]
2927

30-
The following Visual Studio Code extensions are optional and needed only for certain scenarios as indicated:
31-
3228
* [REST client extension](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) - to send HTTP requests and view the responses in Visual Studio Code directly
3329
* [Microsoft Kiota extension](https://marketplace.visualstudio.com/items?itemName=ms-graph.kiota) - to generate API clients
3430

@@ -42,9 +38,6 @@ API center resources appear in the tree view on the left-hand side. Expand an AP
4238

4339
Search for APIs within an API Center by using the search icon shown in the **Apis** tree view item.
4440

45-
> [!TIP]
46-
> Optionally enable a [platform API catalog](enable-platform-api-catalog-vscode-extension.md) for your API center in Visual Studio Code so that app developers in your organization can discover APIs in a centralized location. The platform API catalog is a read-only view of the API inventory.
47-
4841
## View API documentation
4942

5043
You can view the documentation for an API definition in your API center and try API operations. This feature is only available for OpenAPI-based APIs in your API center.

articles/api-center/govern-apis-vscode-extension.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ ms.topic: how-to
77
ms.date: 09/23/2024
88
ms.author: danlep
99
ms.custom:
10-
# Customer intent: As an API developer, I want to use my Visual Studio Code environment to govern APIs in my organization's API center.
10+
# Customer intent: As an API developer, I want to use my Visual Studio Code environment to check API compliance in my organization's API center.
1111
---
1212

1313
# Govern APIs with the Azure API Center extension for Visual Studio Code
1414

15-
To maximize success of your API governance efforts, it's critical to shift-left governance early into the API development cycle. This approach allows developers to create APIs correctly from the beginning, saving them from wasted development effort mitigating non-compliant APIs later in the development process. API Center's Visual Studio Code experience includes critical capabilities for API developers including:
15+
To maximize success of your API governance efforts, it's critical to shift-left governance early into the API development cycle. This approach allows developers to create APIs correctly from the beginning, saving them from wasted development effort and mitigating non-compliant APIs later in the development process.
16+
17+
The Azure API Center extension for Visual Studio Code includes the following governance capabilities for API developers:
1618

1719
* Evaluating API designs against API style guides as the API is developed in Visual Studio Code.
18-
* Early detection of breaking changes ensures that APIs remain reliable and function as expected, preserving the trust of end-users and stakeholders.
20+
* Early detection of breaking changes so that APIs remain reliable and function as expected, preserving the trust of end-users and stakeholders.
1921

2022
[!INCLUDE [vscode-extension-basic-prerequisites](includes/vscode-extension-basic-prerequisites.md)]
2123

22-
The following Visual Studio Code extensions are optional and needed only for certain scenarios as indicated:
23-
24-
* [Spectral extension](https://marketplace.visualstudio.com/items?itemName=stoplight.spectral) - to run shift-left API design conformance checks in Visual Studio Code
24+
* [Spectral extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=stoplight.spectral) - to run shift-left API design conformance checks in Visual Studio Code
2525
* [Optic CLI](https://github.com/opticdev/optic) - to detect breaking changes between API specification documents
2626

2727
[!INCLUDE [vscode-extension-setup](includes/vscode-extension-setup.md)]
@@ -35,7 +35,7 @@ To ensure design conformance with organizational standards as you build APIs, th
3535

3636
Once an active API style guide is set, opening any OpenAPI or AsyncAPI-based specification file will trigger a local linting operation in Visual Studio Code. Results are displayed both inline in the editor, as well as in the Problems window (**View** > **Problems** or **Ctrl+Shift+M**).
3737

38-
:::image type="content" source="media/build-register-apis-vscode-extension/local-linting.png" alt-text="Screenshot of local-linting in Visual Studio Code." lightbox="media/build-register-apis-vscode-extension/local-linting.png":::
38+
:::image type="content" source="media/govern-apis-vscode-extension/local-linting.png" alt-text="Screenshot of local-linting in Visual Studio Code." lightbox="media/build-register-apis-vscode-extension/local-linting.png":::
3939

4040
## Breaking change detection
4141

@@ -47,7 +47,7 @@ When introducing new versions of your API, it's important to ensure that changes
4747

4848
Visual Studio Code will open a diff view between the two API specifications. Any breaking changes are displayed both inline in the editor, as well as in the Problems window (**View** > **Problems** or **Ctrl+Shift+M**).
4949

50-
:::image type="content" source="media/build-register-apis-vscode-extension/breaking-changes.png" alt-text="Screenshot of breaking changes detected in Visual Studio Code." lightbox="media/build-register-apis-vscode-extension/breaking-changes.png":::
50+
:::image type="content" source="media/govern-apis-vscode-extension/breaking-changes.png" alt-text="Screenshot of breaking changes detected in Visual Studio Code." lightbox="media/build-register-apis-vscode-extension/breaking-changes.png":::
5151

5252

5353
## Related content
3.14 KB
Loading

articles/api-center/includes/vscode-extension-setup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ ms.custom: Include file
1313

1414
## Setup
1515

16-
1. Install the Azure API Center extension for Visual Studio Code from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=apidev.azure-api-center). Install optional extensions as needed.
16+
1. Install the Azure API Center extension for Visual Studio Code from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=apidev.azure-api-center). Install other extensions as needed.
1717

1818
> [!NOTE]
1919
> Where noted, certain features are available only in the extension's pre-release version. [!INCLUDE [vscode-extension-prerelease-features](vscode-extension-prerelease-features.md)]
2020
1. In Visual Studio Code, in the Activity Bar on the left, select API Center.
21+
:::image type="content" source="media/vscode-extension-setup/api-center-activity-bar.png" alt-text="Screenshot of API Center extension in the activity bar.":::
2122
1. If you're not signed in to your Azure account, select **Sign in to Azure...**, and follow the prompts to sign in.
2223
Select an Azure account with the API center (or API centers) you wish to view APIs from. You can also filter on specific subscriptions if you have many to view from.

0 commit comments

Comments
 (0)