I have read many articles and similar questions but none of those decisions do not fit me. I have 3 methods:
public string GetA()
{
return "Hello from GetA";
}
public string GetB(int id)
{
return "Hello from GetB";
}
public string GetC(sting all)
{
return "Hello from GetC";
}
I need to configure route like:
1.http://localhost:63087/api/Test/
2.http://localhost:63087/api/Test/all
3.http://localhost:63087/api/Test/1
4.http://localhost:63087/api/Test/1/all
How can I implement it?
I know this may be a duplicate (1, 2, 3), but I need help with it.
Thank you in advance