REST, HTTP DELETE and parameters

Posted by Chris McCauley on Stack Overflow See other posts from Stack Overflow or by Chris McCauley
Published on 2010-03-29T16:01:24Z Indexed on 2010/03/29 16:03 UTC
Read the original article Hit count: 560

Filed under:
|

Is there anything non-RESTful about providing parameters to a HTTP DELETE request?

My scenario is that I'm modeling the "Are you sure you want to delete that?" scenario and eventually I end up having to pass a parameter to the delete request with "?force_delete=true"

e.g.

DELETE http://server/resource/id?force_delete=true

If the user does not specify force_delete then I'm returning 409 Conflict - is that correct?

© Stack Overflow or respective owner

Related posts about rest

Related posts about restful