0

for example, flask can get param in url:

".com/<name>/<token>" 

get 'name' and 'token' as Variable .

Does asp.net can do this?

davidism
  • 110,080
  • 24
  • 357
  • 317
Kamil
  • 534
  • 1
  • 7
  • 27

1 Answers1

-1

You can use attribute routing in ASP.Net Web API and should use the Route attribute

[HttpGet]
[Route("GetSomething/{name}/{token})"]
public MyResponse GetSomething(string name, string token)
{
    ...
}
phuzi
  • 9,921
  • 3
  • 25
  • 45