stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udara Liyanage <ud...@wso2.com>
Subject Content Type in DELETE requests
Date Thu, 22 Jan 2015 12:08:10 GMT
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

Mime
View raw message