如何使用Azure DevOps CI&如何将OpenAPI集成到Azure API管理中CD管道
我创建了一个Azure API管理实例。我想使用Azure Devops CI&将OpenAPI集成到Azure API管理中。 CD管道。
对于每个版本,我想自动从代码生成OpenAPI规格。如何在此OpenAPI规范上构建使用所有必需版本,API,产品,标签,用户,订阅,证书和策略的Azure API管理?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是示例文档,您可以在其中使用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
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.
确实,您可以使用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