How to send additional data to server, PUT, DELETE, GET, POST?
How to send additional data to server, PUT, DELETE, GET, POST?
Hi guys.
I am building an API with php.
I need to support Datable with SERVERSIDE enabled.
These are all the methods in my API flow (GET, POST, PUT, DELETE).
and I need to know how the API consumer can send additional data on each request to the server.
the main reason is that the API needs to validate a TOKEN, to be able to show or not Data.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The
ajaxdocs state this:You can set the
typeand other attributes supported by jQuery ajax(). The docs also mention you are not allowed to override thesuccessfunction.You can use the
ajax.dataoption to send additional data.Kevin