Thursday, 22 April 2021

web apis

 

[Route("~/api/Secrets/{name:string}")]

public string GetSecrets(string uri, string name)

{

var  keyVaultName= name;

var kvUris = $"https://{keyVaultName}.vault.azure.net";

}

if you like to pass the string or id from api then donot use name:string youll get parameter error

use only {name}



No comments:

Post a Comment

Best UI