GET request - why there is a parameter?
GET request - why there is a parameter?
Hello!
I hope this question is not stupid, but I couldn't find the solution for a some time.
It seems that the DataTables GET request sends some parameter to my Rails API, although I want to GET all the data from a JSON URL (img below)
When I am using Postman GET request to the URL without params it works well (JSON data is shown in the Postman program as needed - also img below).
This is my tables constructor:
var startTable = $('#startTable').DataTable( {
ajax: {
url:'http://localhost:3000/scores',
dataType: "json"
},
columns: [
{ data: "id" },
{ data: "query" },
],
dom: 'frtipB',
language: {
url: 'DataTables/lang.json'
},
select: true,
buttons: [{
text: 'Usuń',
className: 'btn btn-danger',
action: function(){
startTable.rows({ selected:true }).remove().draw(false); }
}, {
text: 'Rozpocznij',
className: 'btn btn-success'
}, {
text: 'Zapisz'
}]
});
Thank you in advance! Every little tip would be highly appreciated
This question has an accepted answers - jump to answer
Answers
There are quite a few other threads on this topic:
.
Allan
Thank you and sorry for the repeated question.
Have a good day!