如何使用Azure DevOps CI&如何将OpenAPI集成到Azure API管理中CD管道

发布于 2025-01-21 17:44:13 字数 174 浏览 2 评论 0 原文

我创建了一个Azure API管理实例。我想使用Azure Devops CI&将OpenAPI集成到Azure API管理中。 CD管道。

对于每个版本,我想自动从代码生成OpenAPI规格。如何在此OpenAPI规范上构建使用所有必需版本,API,产品,标签,用户,订阅,证书和策略的Azure API管理?

I have created an Azure API Management instance. I want to integrate OpenAPI into Azure API Management using Azure DevOps CI & CD pipelines.

For each release, I want to generate the OpenAPI spec from the code automatically. How can I build on this OpenApi spec to set up Azure API Management with all required version sets, apis, products, tags, users, subscriptions, certificates, and policies?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回心转意 2025-01-28 17:44:13

这是示例文档,您可以在其中使用CI/CD管道自动将API自动为API


​/swashbuckle.aspnetcore#swashbuckleaspnetcorecli“ rel =“ nofollow noreferrer”> swashbuckle cli 可以用来从应用程序的启动组件中直接从应用程序的启动组件中检索Swagger/OpenAPI JSON,并将其写入文件。请按照配置使您可以恢复源控制存储库中的CLI并在您的CI构建定义中使用它。

Here is the Sample Document where you can Automate Open API to APIM using CI/CD pipelines

https://www.domstamand.com/automating-your-openapi-updates-to-api-management-through-your-cicd-pipeline/

we need to use the Swashbuckle CLI which can be use to retrieve the Swagger/OpenAPI JSON directly from the application’s startup assembly, and write it to a file. Follow the configuration to add the CLI to your source control repository so you can restore the tool and use it in your CI build definition.

定格我的天空 2025-01-28 17:44:13

确实,您可以使用Swashbuckle CLI生成OpenAPI Spec文件。

您可以使用此DevOps扩展程序通过CICD管道轻松配置API管理API:

Indeed you can use the Swashbuckle CLI to generate the OpenApi spec file.

You can use this devops extension to easily configure your API Management API's through your CICD pipeline: https://marketplace.visualstudio.com/items?itemName=stephane-eyskens.apim

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文