I am creating an unbound function into an OData 18.2 v4 service in .net. The function is declared as follows:
WebApi Route Config:
modelBuilder
.Function("MyFunction1")
.ReturnsCollection<string>()
.Parameter<string>("parameter1");
Controller:
[HttpGet]
[ODataRoute("MyFunction1(parameter1={value1})")]
public IHttpActionResult MyFunction1([FromODataUri] string value1)
{
return Ok(MyFunction2(value1));
}
/Test/Default.MyFunction1(value1='HV / PD Testing')
- how can I escape / Forward slash
The request filtering module is configured to deny a request that contains a double escape sequence.
– Zoyeb Shaikh Jul 05 '23 at 13:57The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0 – Zoyeb Shaikh Jul 05 '23 at 14:14