I have a c# Web api, like this:
[HttpGet]
[Route("gatewayinfo/{endpointAddress}")]
public GatewayModel GetGatewayInfo(string endpointAddress)
when I call that api I need to pass in an url as address (http://example.con)
How can I do that with HttpClient? If I put url in parameter it won't work :
var client = new HttpClient();
client.SetBearerToken(token);
var result = await client.GetStringAsync(_webApiAddress + parameter);
_webApiAddress + parameterjust before execution? Did you verify that your API returns correct data if e.g. called withhttp://localhost:8080/gatewayinfo/http://www.example.com/? These slashes in the "URL" could make it difficult to parse; seems like a weird format to me with the protocoll. Maybe just do agatewayinfo/example.comwithout slashes in theendpointAddress?