QueryParser 1.0.8
dotnet add package QueryParser --version 1.0.8
NuGet\Install-Package QueryParser -Version 1.0.8
<PackageReference Include="QueryParser" Version="1.0.8" />
<PackageVersion Include="QueryParser" Version="1.0.8" />
<PackageReference Include="QueryParser" />
paket add QueryParser --version 1.0.8
#r "nuget: QueryParser, 1.0.8"
#:package QueryParser@1.0.8
#addin nuget:?package=QueryParser&version=1.0.8
#tool nuget:?package=QueryParser&version=1.0.8
QueryParser
QueryParser it is a .NET package that allows users to convert objects into HTTP query parameters to be used within an HTTP request. This package is designed to be used with ASP.Net controllers and enable C# classes to be sent to API controllers as query parameters. By passing objects using the Query section of an HTTP payload, the quantity of information to be sent using the other HTTP sections is minimised, thus allowing the app to transmit data with more flexibility. This package is using the Newtonsoft.json package.
// [FromQuery] => The controller extracts the required payload from the url query parameters
// [FromBody] => The controller extracts the required payload from the HTTP payload Body section
// [FromHeader] => The controller extracts the required payload from the HTTP payload Header section
public async Task<string?> Get([FromQuery] AuthenticationModel? value)
{
// Controller content
}
Example usage
Client

Controller

Example usage result
Generated URL

Controller received payload

Usage
// string query_parameters = QueryParser.QueryParsing.QueryParser<TypeOfTheObjectToBeParsed>(object_to_be_parsed);
string query_parameters = QueryParser.QueryParsing.QueryParser<AuthenticationModel>(authentication);
Download
.NET CLI
dotnet add package QueryParser --version 1.0.4
Package Manager Console
NuGet\Install-Package QueryParser -Version 1.0.4
Links
NuGet: https://www.nuget.org/packages/QueryParser
GitHub: https://github.com/CSharpTeoMan911/QueryParser
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.8 | 173 | 4/5/2025 |