Change the HTTP method used to reach the endpoint
data-method lets you change the HTTP method used to reach the endpoint. Default method is POST, but by using this option, you can change it to GET, PUT, DELETE or whatever you need.
This form looks like this:
Enter a variable name: <br/> <input type="text" id="variable" name="variable"/> <br/><br/> <input type="button" value="Create" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="put" /> <input type="button" value="Delete" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="delete" /> <input type="button" value="List" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="options" /> <br/><br/> <input type="button" value="Increment" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="post" /> <input type="button" value="Get value" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="get" /> <input type="button" value="Decrement" class="btn domajax click" data-endpoint="method-rest-handler.php" data-raw="#variable" data-raw-type="text" data-output="#output" data-method="head" /> <br/><br/> <div id="output"></div>
All the documentation at a glance