0

for example, flask can get param in url:

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

get 'name' and 'token' as Variable .

Does asp.net can do this?

0

1 Answer 1

-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)
{
    ...
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.