\"ReRoutes\": [
{
\"DownstreamPathTemplate\": \"/api/Agent/GetPagedAgents?page={page}\",
\"DownstreamScheme\": \"http\",
\"DownstreamHostAndPorts\": [
{
Did you try to add [FromQuery]
attribute?
public IActionResult Get([FromQuery] string page, [FromQuery] string pageSize, [FromQuery] string filter, [FromQuery]string sortBy)
{
...
}
or create a simple model
public class Request
{
public string Page { get; set; }
public string PageSize { get; set; }
public string Filter { get; set; }
public string SortBy { get; set; }
}
and use it like
public IActionResult Get([FromQuery] Request request)
{
...
}