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
}// string query_parameters = QueryParser.QueryParsing.QueryParser<TypeOfTheObjectToBeParsed>(object_to_be_parsed);
string query_parameters = QueryParser.QueryParsing.QueryParser<AuthenticationModel>(authentication);dotnet add package QueryParser --version 1.0.4NuGet\Install-Package QueryParser -Version 1.0.4NuGet: https://www.nuget.org/packages/QueryParser
GitHub: https://github.com/CSharpTeoMan911/QueryParser



