0
I’m trying to create a function in my Webapi where I return information based on the email address I send, the problem is that the character "." breaks the route.
In case I did my action like this:
[AcceptVerbs("GET")]
[Route("Usuarios/GetUsuarioPorEmail/{email}")]
public IQueryable<Usuarios> GetUsuarioPorEmail(string email)
I tried to call it all these ways and none of it worked, http://localhost:11111/api/Usuarios/Getususporemail/[email protected] http://localhost:11111/api/Usuarios/Getususporemail/? [email protected] http://localhost:11111/api/Usuarios/Getususporemail/[email protected] http://localhost:11111/api/Usuarios/Getususporemail/[email protected] http://localhost:11111/api/Usuarios/Getususporemail/? [email protected]
But if I call it that, it works
http://localhost:11111/api/Usuarios/Getususporemail/test@testecom
Only there is no e-mail score.