Skip to content

Commit 17ed90e

Browse files
committed
Minor Changes for Azure Function for MySQL
1 parent 6b69017 commit 17ed90e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-functions/functions-bindings-azure-mysql-input.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ namespace Microsoft.Azure.WebJobs.Extensions.MySql.Samples.InputBindingSamples
8989
{
9090
[FunctionName(nameof(GetProducts))]
9191
public static IActionResult Run(
92-
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "getproducts/{cost}")]
92+
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "getproducts/{productid}")]
9393
HttpRequest req,
9494
[MySql("select * from Products where Cost = @Cost",
9595
"MySqlConnectionString",
96-
parameters: "@Cost={cost}")]
96+
parameters: "@productId={productid}")]
9797
IEnumerable<Product> products)
9898
{
9999
return new OkObjectResult(products);
@@ -579,7 +579,7 @@ The following is binding data in the function.json file:
579579
"methods": [
580580
"get"
581581
],
582-
"route": "getproducts}"
582+
"route": "getproducts"
583583
},
584584
{
585585
"name": "$return",

0 commit comments

Comments
 (0)