I have this controller with one method which receives two variables. One is the culture, the other is a path.
public class WebsiteContentController : ApiController
{
[HttpGet]
public HttpResponseMessage Test(string culture, string path)
{
var result = DoStuff(culture, path);
return result;
}
}
Which i call like in this examples:
/Api/WebsiteContent/Test?path=/quem-somos/a-marca/&culture=pt
/Api/WebsiteContent/Test?path=/quem-somos/&culture=pt
/Api/WebsiteContent/Test?path=/quem-somos/something/something/&culture=pt
What i you like to do, is to create a endpoint to similar to this one:
/Api/WebsiteContent/Test/pt/quem-somos/a-marca/
Is there any way to call an endpoint with this format?