php-crud-api
php-crud-api copied to clipboard
Respecting the order of the columns specified in the "columns" parameter
Hi I have noticed that http://localhost/api.php/categories?columns=name,surname http://localhost/api.php/categories?columns=surname,name gives the same result (the schema order is chosen) Is this a bug? Thanks for you work
Thank you for reaching out. You asked about the column order.
Is this a bug?
You could call not respecting the order of the parameters a bug or respecting the order an enhancement.
Aside from hard-coding indices, is there an approved way to determine the index / schema for a table?