How to pass comma separated integers in RestRequest of RestSharp?
SoapUI Image I am consuming an API using RestSharp. The method is a DELETE method and i have to pass comma separated integers. Request type is application/json and Body should be like Body: 1324,198,1567 How to pass comma separated integers in request body ? I have tried to pass serialized List of integers as well as string in which integer values are comma separated
string addressIds = "123,179,638"; RestClient _client = new RestClient(); var request = GetAPIMethodRequest(Method.Delete, AccessToken, UserID, false); var jsonBody = JsonConvert.SerializeObject(addressIds); request.AddParameter(Application_Json, jsonBody, ParameterType.RequestBody); var restResponse = _client.Execute(request);