I have a web api with the following method:
[HttpGet]
[Route("api/documento/doc/list?{cpf}")]
public string Listar(string cpf)
{
return "value";
}
I need the above method to be called through the url:
The big problem is the "?" between the list and the cpf.
How can I change the route to work with the above URL?