Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.24k stars 436 forks source link

Concatenate variables #1247

Closed alexander-kastil closed 7 months ago

alexander-kastil commented 7 months ago

I am struggling a little with the concatenation of variables ... the hard-coded sample (lower) works when executing and the parameterized one (upper) gives an invalid json ... Is there something I am missing?

@subscriptionId="78033352-805c-4acd-af80-f8f95083268x" @resourceGroup="vouchers-app-dev" @partnerTopic="graph-events-dev" @location="westeurope"

@notificationUrl="EventGrid:?azuresubscriptionid={{subscriptionId}}&resourcegroup={{resourceGroup}}&partnertopic={{partnerTopic}}&location={{location}}"

@notificationUrl="EventGrid:?azuresubscriptionid=78033352-805c-4acd-af80-f8f95083268d&resourcegroup=vouchers-app-dev&partnertopic=graph-events-dev&location=westeurope"

alexander-kastil commented 7 months ago

Found out that rest client is very stric about how it concatenates variables ... When removing " from variable declarations it works fine

@subscriptionId=78033352-805c-4acd-af80-f8f95083268x @resourceGroup=vouchers-app-dev @partnerTopic=graph-events-dev @location=westeurope