Postman 集合访问 Azure 虚拟网络中 API 的推荐方式?

问题描述 投票:0回答:1

我们正在为内部开发的 API 开发 Postman 集合,这些 API 最终将部署在 Azure 虚拟网络中。

Postman 有什么推荐的方式来访问 vnet 吗?

azure postman azure-virtual-network web-api-testing
1个回答
0
投票

要使 Postman 集合访问 Azure 虚拟网络中的 API,您需要使用 Azure 门户创建 Azure API 管理服务实例,并将 Postman 与 Azure API 管理集成。

参考:https://learn.microsoft.com/en-us/azure/api-management/get-started-create-service-instance

https://learning.postman.com/docs/designing-and-development-your-api/deploying-an-api/deploying-an-api-azure/

https://learn.microsoft.com/en-us/azure/api-management/export-api-postman

连接到 Azure API 管理后,您可以从 Postman 中查看 API 部署状态和历史记录。您还可以将 OpenAPI 定义从 Postman 导出到 Azure API 管理,或从 Azure 导入定义以在 Postman 中使用。

注意:目前,您只能将 HTTP API 从 API 管理直接导出到 Postman。

支持OpenAPI 2.0和3.0定义。 Azure API 管理不支持 OpenAPI 规范的某些属性。有关更多信息,请参阅以下有关 API 导入限制和已知问题的文章:

https://learn.microsoft.com/en-us/azure/api-management/api-management-api-import-restrictions

© www.soinside.com 2019 - 2024. All rights reserved.