Editor remove method data comes as arguments, not in form as other methods

Editor remove method data comes as arguments, not in form as other methods

loukinglouking Posts: 259Questions: 52Answers: 0

I am using Editor version 1.5.5 with DataTables 1.10.11.

Maybe this is a FAQ and also maybe in the documentation, but I didn't see this.

I am converting some of my methods to be RESTful, and noticed that remove action works different than the create, edit actions.

The create and edit actions have the 'action' and other data defined within a form, but the remove action has the action and other data as url arguments.

This can be seen at https://editor.datatables.net/examples/advanced/REST.html, so I don't think there's something I have set up incorrectly.

Is this as expected?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Answer ✓

    Hi,

    Yes, this is expected I'm afraid. The reason for it is that a number of HTTP servers will not accept body parameters for a DELETE verb. See this SO thread and this jQuery ticket for more information.

    It is really frustrating that some servers do allow it and some don't!

    Regards,
    Allan

This discussion has been closed.