php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Respecting the order of the columns specified in the "columns" parameter

Open abussani opened this issue 7 years ago • 2 comments

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

abussani avatar Jul 11 '17 15:07 abussani

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.

mevdschee avatar Oct 22 '17 14:10 mevdschee

Aside from hard-coding indices, is there an approved way to determine the index / schema for a table?

mhlinder avatar Nov 19 '17 16:11 mhlinder