You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -549,6 +549,22 @@ For spatial support there is an extra set of filters that can be applied on geom
549
549
550
550
These filters are based on OGC standards and so is the WKT specification in which the geometry columns are represented.
551
551
552
+
### Authorizing tables and columns
553
+
554
+
By default all tables are reflected. If you want to hide some tables you may add the 'authorization' middleware and define a 'authorization.tableHandler' function that returns 'false' for hidden tables.
555
+
556
+
'authorization.tableHandler' => function ($method, $path, $databaseName, $tableName) {
557
+
return $tableName != 'license_keys';
558
+
},
559
+
560
+
The above example will hide the table 'license_keys' in all API input and output.
561
+
562
+
'authorization.columnHandler' => function ($method, $path, $databaseName, $tableName, $columnName) {
The above example will hide the 'password' field from the 'users' table in all API input and output.
567
+
552
568
### Sanitizing input
553
569
554
570
By default all input is accepted and sent to the database. If you want to strip (certain) HTML tags before storing you may add the 'sanitation' middleware and define a 'sanitation.handler' function that returns the adjusted value.
0 commit comments