The get request is from an SMS API delivery report to get the information about the SMS.
One of variable that will be posted to my api is this: ?err-code=0. Is it possible to do it in a .Net Web API solution or should I use another language?
Web API Get Method:
public HttpResponseMessage Get([FromUri]TestModel testingDetials)
{
return Request.CreateResponse(System.Net.HttpStatusCode.OK);
}
Model
public class TestModel
{
public string foo { get; set; }
public string err_code { get;set; }
}
I tried various solution found on this website none of them work like adding [JsonProperty] and [DataMember] to the err_code property.