GET request - why there is a parameter?

GET request - why there is a parameter?

AdamoschAdamosch Posts: 2Questions: 1Answers: 0

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 :smile:

This question has an accepted answers - jump to answer

This discussion has been closed.