You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2015/01/22 13:08:10 UTC

Content Type in DELETE requests

Hi,

Content-Type describes the type of the content of the incoming message
body. For delete requests there is no message body. Hence DELETE requests
need not to specify content-type, so Consumes annotation for them is not
needed I guess.

For DELETE requests response body is empty, thus Produces annotation is not
required.
@Produces("application/json")
@Consumes("application/json")

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897