First of all, thanks for building this great php api framework and sharing it with the world!
I am a SAP Developer mainly developping JS apps with SAPui5 / OpenUit (https://open.sap.com/)
And for Sapui5 to work with your API, i made a SAPui5 model implementation of your api
With this model I can retrieve, edit and send data to your api and bind it to my views.
Other SAPui5 Models (like Odata) auto convert api response data to usable js json objects.
for example. Any date/time fields in the api will in js be converted to a new Date() object.
I wanted to do this too with my model implementation of your api.. but therefore I needed to know what db column and types my db tables have.
I found that in your metadata under paths/TABLENAME/post/parameters[0]/schema/properties
all db columns could be found.. and that all types are set to "string"
In order to get the db-types aswel I edited your class and added "db-type" to
paths/TABLENAME/get/responses/200/schema/items/properties/PROPERTYNAME
So now I can what what the column types are in the db, and so for my model I could convert a db column date to a js Date() object and viseversa.
note: I only added the query reflect_type to the MySQL class, I don't have the experience to write it also in PostgreSQL, SQLServer, SQLite.
hit me back what you think of it, and if maybe you are willing to accept the pull request or have a better solution, please let me know.
Barry
1st attempt at adding exclude (issue #136). If both include and exclude are used, include happens first, then the exclude. The exclude list is either {columns/fields} or {table}.{columns/fields} in format. If the {columns/fields} format is used, it will only be applicable to responses with a single table. If relations are pulled in, be aware that excluding a specified table/field/column could have unintended consequences to the response.