HttpClient DELETE with object -
HttpClient DELETE with object -
i making solution against rest-interface using c# - httpclient , newtonsoft.json.
one of methods requires delete url , json-object.
i not able alter rest-service, has solved in own code.
what missing delete-alternative myclient.postasjsonasync(url,json-object)
i aware, seems possible using solved using httpwebrequest, rather go on using httpclient.
so have clue how solve this?
simply utilize httpclient.deleteasync(url)
, , why not set target of delete url, /api/products/id
instead of passing json object.
dotnet-httpclient
Comments
Post a Comment