I am sending via JSON an array of strings, how can I access this array via url? example of some of the tests:
But it did not work, does anyone know how I can do this?
[HttpGet]
public HttpResponseMessage GetLanguageList(List<string> keys)
{
try
{
#region meu codigo
Dictionary<string, string> key_value = new Dictionary<string, string>();
foreach (string key in keys)
{
key_value.Add(key,Resources.Language.ResourceManager.GetString(key));
}
#endregion
return Request.CreateResponse(HttpStatusCode.OK, new ResponseApi()
{
Status = Status.OK,
Message = "Sucesso",
Response = key_value
},
"application/json");
}
catch (Exception ex)
{
return Request.CreateResponse(HttpStatusCode.OK, new ResponseApi()
{
Status = Status.NOK,
Message = ex.Message,
Response = null
},
"application/json");
}
}