What is the right approach for url attributes decoding from HTTP GET requests like:
Get /reports/{categories}/date/{date}
[Route("reports/{categories}/date/{date}")]
public IEnumerable<Report> GetReports(string categories, string date)
Categories
is something like Category1\SubCategory
, it contains a backslash.
From Swagger, I am getting: Category1\\SubCategory
From a third-party client, I get: Category1%5CSubCategory
Swagger for some reason adds additional backslashes for escaping and third-party client is doing url encoding.
Is there a setting in ASP.NET Core 6, 7 to control the behaviour of parameters regarding special character and encoding?