Hi,

 According to RFC [1] you need to return 200 if the DELETE response
contains an entity body and 204 if response does not contain any entity.

[1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Thanks.

On Wed, May 4, 2016 at 4:47 PM, Hemika Kodikara <[email protected]> wrote:

> Hi All,
>
> Small concern. When a resource is deleted through a DELETE http method,
> should there be a response body or should there not be a response body ?
> The response body can contain the deleted resource.
>
> If there is no response body, should it return a 204 (No Content) ?
> If there is a response body, should it return a 200 (OK) ?
>
> Please advice me on this.
>
> Regards,
> Hemika
>
>
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +94777688882
>
> On Sun, Mar 13, 2016 at 6:38 PM, Frank Leymann <[email protected]> wrote:
>
>> Dear all,
>>
>> please find attached a document that compiles guidelines about creating
>> RESTful APIs.  We worked out these guidelines over the last couple of
>> months when building RESTful APIs for  API Manager and Enterprise Store
>> Publisher; also Machine Learner helped shaping them.
>>
>> It might be helpful when you need to build a RESTful API for your product
>> or feature.
>>
>> Best regards,
>> Frank
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : [email protected]

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to