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

A flag to enable list of tables and fields?

Open zemian opened this issue 3 years ago • 1 comments

Hi,

Would it be useful to add a configurable flag that can expose list of tables and fields available (eg: like a /schema endpoint)? I understand this would be a security risk, but it would be very useful for internal project use where it's not a concern. Also have a flag default to off should be safe enough.

zemian avatar Sep 21 '22 21:09 zemian

Try adding "columns" to the the "controllers" config parameter. It does what you want.

mevdschee avatar Sep 21 '22 21:09 mevdschee

Ahh! Yes it does work for me! Thank you @mevdschee!

zemian avatar Sep 22 '22 11:09 zemian