tableData request not working if you use POST as method
Closed this issue · 0 comments
mauthi commented
This is a bug.
Prerequisites
- Are you running the latest version?
- Are you reporting to the correct repository?
- Did you check the documentation?
- Did you perform a cursory search?
Description
If you use POST
as method for your table (because url for get is too long) the /tableData
request fails
Steps to Reproduce
- Add the following line the a table config (tested with
vendor/laravel-enso/people/src/app/Tables/Templates/people.json
)
"method": "POST",
- Change
tableData
route invendor/laravel-enso/people/src/routes/api.php
fromget
topost
- Open table
Expected behavior
Table is shown
Actual behavior
500 error for request: json_decode() expects parameter 1 to be string, array given
File: /var/www/html/vendor/laravel-enso/tables/src/app/Services/Data/Request.php
Line: 60