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
  • 121,510
  • 29
  • 395
  • 339
Kamil
  • 594
  • 1
  • 8
  • 28

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
  • 12,078
  • 3
  • 26
  • 50