Skip to content

Commit 9aa8b2e

Browse files
committed
Fix Issue 4069
* Updated Cmdlet New-AzureRmApiManagementApi to create Api with Empty Path #4069
1 parent 675422b commit 9aa8b2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/ApiManagementClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public void ApiImportFromFile(
456456
string apiId,
457457
PsApiManagementApiFormat specificationFormat,
458458
string specificationPath,
459-
string urlSuffix,
459+
string apiPath,
460460
string wsdlServiceName,
461461
string wsdlEndpointName,
462462
PsApiManagementApiType? apiType)
@@ -467,7 +467,7 @@ public void ApiImportFromFile(
467467

468468
using (var fileStream = File.OpenRead(specificationPath))
469469
{
470-
Client.Apis.Import(context.ResourceGroupName, context.ServiceName, apiId, contentType, fileStream, urlSuffix, wsdlServiceName, wsdlEndpointName, apiTypeValue);
470+
Client.Apis.Import(context.ResourceGroupName, context.ServiceName, apiId, contentType, fileStream, apiPath, wsdlServiceName, wsdlEndpointName, apiTypeValue);
471471
}
472472
}
473473

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public class NewAzureApiManagementApi : AzureApiManagementCmdletBase
6161
ValueFromPipelineByPropertyName = true,
6262
Mandatory = true,
6363
HelpMessage = "Web API Path. Last part of the API's public URL. This URL will be used by API consumers for sending requests to the web service." +
64-
" Must be 1 to 400 characters long. This parameter is required.")]
65-
[ValidateNotNullOrEmpty]
64+
" Must be 0 to 400 characters long. This parameter is required.")]
65+
[ValidateNotNull]
6666
public String Path { get; set; }
6767

6868
[Parameter(

0 commit comments

Comments
 (0)