I am trying to consume an api of this type:
api / food_order / {id}
the idea is from a console project.
I found this code:
client.BaseAddress = new Uri ("http: // localhost: 1565 /");
var response = client.PutAsJsonAsync ("api / food_order", p) .Result;
the detail is that it sends the object p but the idea is to send the object p besides a string {id}