Azure / Azure/azure-functions-host

Support binding query parameters in HttpTriggers (C#)

Open
#7,610 11 comments 5 reactions 1 assignee Assigned to @brettsam View on GitHub
needs-investigation
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

The HttpTrigger already supports [binding route parameters to variables](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=csharp#using-route-parameters) in C# and it would be nice if it supported binding query parameters as well.

Related info: ASP.NET Core supports binding query parameters using the [FromQuery attribute](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.fromqueryattribute?view=aspnetcore-5.0)

[UserVoice link](https://feedback.azure.com/forums/355860-azure-functions/suggestions/43696350-support-binding-query-parameters-in-httptrigger). Probably isn't needed since Microsoft will stop using UserVoice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.