Hi Vanji,

Extracting from HTTP spec[1]

A message-body MUST NOT be included in a request if the specification of
the request method (section 5.1.1
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1>) does not
allow sending an entity-body in requests. *A server SHOULD read and forward
a message-body on any reques*t; if the request method does not include
defined semantics for an entity-body, then the message-body SHOULD be
ignored when handling the request.

According to the ESB should pass the message body in any case , ignoring
the body is up to the backend.

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3
[2]
http://stackoverflow.com/questions/14323716/restful-alternatives-to-delete-request-body

On Tue, Oct 7, 2014 at 11:21 AM, Keerthika Mahendralingam <
[email protected]> wrote:

> Hi Udara,
> For that particular request we need to send the resource id in request
> body as a json array. In their api method we can't send the id via url.
> like specified here:
> https://developer.spotify.com/web-api/remove-tracks-playlist/
>
> On Tue, Oct 7, 2014 at 8:43 AM, Udara Liyanage <[email protected]> wrote:
>
>>
>> Hi,
>>
>> You are sending a DELETE request means to delete a particular resource
>> from the system. You can define which resource to be deleted in url by
>> id/name or any other identifier of the resource. Why you need to send a
>> payload in a DELETE request?
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> <[email protected]>
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> [email protected] <[email protected]>
>



-- 

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

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to