jersey icon indicating copy to clipboard operation
jersey copied to clipboard

does jersey 2.x Client API support DELETE with a body ?

Open sosoeo opened this issue 7 years ago • 1 comments

I'am working on a project using Client API,the webservice API provided by other company use a DELETE request with body.

what can I do with it? by this?: method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE));

sosoeo avatar Apr 02 '18 09:04 sosoeo

method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE)); this will cause a error: ijava.lang.IllegalStateException: Entity must be null for http method DELETE. what should I do? ,while, RESTeasy have no such limitation?

sosoeo avatar Apr 03 '18 13:04 sosoeo