如何通过 Azure API 管理中的 rest API 更新 swagger(打开 API 规范)?是否有任何 Rest API 支持使用 rest api 重新导入?

How to Update swagger(Open API spec) through rest API in Azure API Management? Is there any Rest API support re-import using rest api?

我通过导入开放 api 规范(招摇)创建了一个 API。如果我在列表中添加了一个新的 api,我希望 azure apis 得到更新新列表基本上重新导入招摇。有什么方法可以让它自动化吗??

有关媒体类型请参见此处:https://docs.microsoft.com/en-us/rest/api/apimanagement/api/createorupdate#request-headers. Or if you want to send JSON body, you could send "contentFormat" and "contentValue" from payload described here: https://docs.microsoft.com/en-us/rest/api/apimanagement/api/createorupdate#request-body