Open
Description
Overview
The Api_CreateOrUpdate
operation creates a new API in Azure API Management.
When importing an API definition from a publically accessible internet address, one has to specify the format
and value
properties as well as, at least, the path
property from the ApiContractProperties
definition.
This definition also has a displayName
property which does not seem to be used. Instead, the resulting API display name is taken from the title
property from the API definition referred to when creating the API.
Repro steps
- Use the following content JSON file:
{
"properties": {
"format": "openapi-link",
"value": "https://masked.blob.core.windows.net/public/swagger.json",
"path": "echo",
"displayName": "Custom Echo API",
"apiType": "http",
"protocols": [ "https" ]
}
}
- Run the following command in a cloud shell
az rest `
--method PUT `
--uri /subscription/<sub>/resourceGroups/<rg>/providers/Microsoft.ApiManagement/service/<service>/apis/echo-api?api-version=2019-12-01 `
--body `@api_createorupdate.json
- Notice that the display name is not the one specified in the ARM template.
It would be expected that display name should be: Custom Echo API
. Instead, it is Echo API
as taken from the title
property in the API definition swagger file.